File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<!--{
2
2
"Title": "The Go Programming Language Specification",
3
- "Subtitle": "Language version go1.22 (Feb 6 , 2024)",
3
+ "Subtitle": "Language version go1.22 (April 24 , 2024)",
4
4
"Path": "/ref/spec"
5
5
}-->
6
6
@@ -6644,8 +6644,8 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
6644
6644
6645
6645
< p >
6646
6646
The range expression < code > x</ code > is evaluated once before beginning the loop,
6647
- with one exception: if at most one iteration variable is present and
6648
- < code > len(x)</ code > is < a href ="#Length_and_capacity "> constant</ a > ,
6647
+ with one exception: if at most one iteration variable is present and < code > x </ code > or
6648
+ < a href =" #Length_and_capacity " > < code > len(x)</ code > </ a > is < a href ="#Constants "> constant</ a > ,
6649
6649
the range expression is not evaluated.
6650
6650
</ p >
6651
6651
You can’t perform that action at this time.
0 commit comments