From de92199648a71c7296719a847e043f3183328d7e Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 28 Apr 2010 13:18:40 -0700 Subject: [PATCH] spec: clarify "continue" with label. the text was obvious in intent but inaccurate in meaning. R=gri CC=golang-dev https://golang.org/cl/964045 --- doc/go_spec.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index e53d3fb396c..b4637e6e293 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -4217,7 +4217,10 @@ ContinueStmt = "continue" [ Label ] .

-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 +(ยงFor statements).

Goto statements