From: Robert Griesemer Date: Wed, 11 May 2022 22:41:21 +0000 (-0700) Subject: spec: clarify "continue" statement X-Git-Tag: go1.19beta1~288 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c01feba15de402dce666e4f9bf14a06fc64aa97d;p=gostls13.git 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 Reviewed-by: Matthew Dempsky --- 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:

A "continue" statement begins the next iteration of the -innermost "for" loop at its post statement. +innermost enclosing "for" loop +by advancing control to the end of the loop block. The "for" loop must be within the same function.