]> Cypherpunks repositories - gostls13.git/commitdiff
spec: clarify "continue" with label. the text was obvious in intent but
authorRob Pike <r@golang.org>
Wed, 28 Apr 2010 20:18:40 +0000 (13:18 -0700)
committerRob Pike <r@golang.org>
Wed, 28 Apr 2010 20:18:40 +0000 (13:18 -0700)
inaccurate in meaning.

R=gri
CC=golang-dev
https://golang.org/cl/964045

doc/go_spec.html

index e53d3fb396ca135747e7463ff6583a6070a270fe..b4637e6e2930a75a039361afa63f885aa40b115d 100644 (file)
@@ -4217,7 +4217,10 @@ ContinueStmt = "continue" [ Label ] .
 </pre>
 
 <p>
-The optional label is analogous to that of a "break" statement.
+If there is a label, it must be that of an enclosing
+"for" statement, and that is the one whose execution
+advances
+(ยง<a href="#For_statements">For statements</a>).
 </p>
 
 <h3 id="Goto_statements">Goto statements</h3>