aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2022-05-11 15:41:21 -0700
committerRobert Griesemer <gri@golang.org>2022-05-12 04:47:23 +0000
commitc01feba15de402dce666e4f9bf14a06fc64aa97d (patch)
tree8e9b38969cbc52a96c350762218320313112822d
parent7e11ff38160da714b3528d58021aefa42c7ed7e3 (diff)
downloadgo-c01feba15de402dce666e4f9bf14a06fc64aa97d.tar.xz
spec: clarify "continue" statement
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>
-rw-r--r--doc/go_spec.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index f6e87fe8a4..069d33ba55 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -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>