]> Cypherpunks repositories - gostls13.git/commit
spec: clarify that break/continue do not work across function boundaries
authorRobert Griesemer <gri@golang.org>
Wed, 28 May 2014 15:43:47 +0000 (08:43 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 28 May 2014 15:43:47 +0000 (08:43 -0700)
commit94849d5a78009dcaafbde2847cc0a27f53aa3723
tree823acaa154401589c46badcf3728d81d099f9f80
parentef25861222ec3f3d960061962c349bd37f29a388
spec: clarify that break/continue do not work across function boundaries

Also made it extra clear for goto statements (even though label scopes
are already limited to the function defining a label).

Fixes #8040.

LGTM=r, rsc
R=r, rsc, iant, ken
CC=golang-codereviews
https://golang.org/cl/99550043
doc/go_spec.html