diff --git a/doc/go_spec.html b/doc/go_spec.html index 6189db5ee6..fd3830dcf0 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -5028,12 +5028,10 @@ the range clause is equivalent to the same clause without that identifier.

-The range expression is evaluated once before beginning the loop, -with one exception: if the range expression is an array or a pointer to an array -and at most one iteration variable is present, only the range expression's -length is evaluated; if that length is constant, -by definition -the range expression itself will not be evaluated. +The range expression x is evaluated once before beginning the loop, +with one exception: if at most one iteration variable is present and +len(x) is constant, +the range expression is not evaluated.