<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Language version go1.22 (Feb 6, 2024)",
+ "Subtitle": "Language version go1.22 (April 24, 2024)",
"Path": "/ref/spec"
}-->
<p>
The range expression <code>x</code> is evaluated once before beginning the loop,
-with one exception: if at most one iteration variable is present and
-<code>len(x)</code> is <a href="#Length_and_capacity">constant</a>,
+with one exception: if at most one iteration variable is present and <code>x</code> or
+<a href="#Length_and_capacity"><code>len(x)</code></a> is <a href="#Constants">constant</a>,
the range expression is not evaluated.
</p>