We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e602625 commit 344075dCopy full SHA for 344075d
doc/go_spec.html
@@ -6643,7 +6643,7 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
6643
</p>
6644
6645
<p>
6646
-The range expression <code>x</code> is evaluated once before beginning the loop,
+The range expression <code>x</code> is evaluated before beginning the loop,
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
the range expression is not evaluated.
0 commit comments