]> Cypherpunks repositories - gostls13.git/commitdiff
spec: clarify "continue" statement
authorRobert Griesemer <gri@golang.org>
Wed, 11 May 2022 22:41:21 +0000 (15:41 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 12 May 2022 04:47:23 +0000 (04:47 +0000)
Taking into account the discussion and relevant feedback on a
change proposed in 2013 (see e-mail thread mentioned in issue).

Fixes #48864.

Change-Id: I811d518b7cbdf6b815695174f1da3d4251f491c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/405756
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html

index f6e87fe8a41044d4858ea576cbec581a082ad54d..069d33ba55de57b002c55ce6e395a08475210111 100644 (file)
@@ -6809,7 +6809,8 @@ OuterLoop:
 
 <p>
 A "continue" statement begins the next iteration of the
-innermost <a href="#For_statements">"for" loop</a> at its post statement.
+innermost enclosing <a href="#For_statements">"for" loop</a>
+by advancing control to the end of the loop block.
 The "for" loop must be within the same function.
 </p>