summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-04-28 13:18:40 -0700
committerRob Pike <r@golang.org>2010-04-28 13:18:40 -0700
commit52d4d667d9589e756aa94ed714d471a3152715ea (patch)
tree10ac4f0f1ca2222f98d3279fa6c3790f5ad134a1 /doc
parentb93a2ed8bd38fc7bdcca2acb465241e5f5b776e6 (diff)
downloadgolang-52d4d667d9589e756aa94ed714d471a3152715ea.tar.gz
spec: clarify "continue" with label. the text was obvious in intent but
inaccurate in meaning. R=gri CC=golang-dev http://codereview.appspot.com/964045
Diffstat (limited to 'doc')
-rw-r--r--doc/go_spec.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index e53d3fb39..b4637e6e2 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -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>