Skip to content

Commit 3372ff7

Browse files
committed
Add comment to goto example code to indicate that a label must be followed by a statement
A label that is not followed by a statement results in a somewhat confusing compilation error. It is hoped that a simple comment in the example code will steer people in the right direction without requiring an increase in the complexity of the description or notes for goto.
1 parent 633ff24 commit 3372ff7

File tree

1 file changed

+1
-0
lines changed
  • Language/Structure/Control Structure

1 file changed

+1
-0
lines changed

Language/Structure/Control Structure/goto.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ for(byte r = 0; r < 255; r++){
5555
}
5656
5757
bailout:
58+
// more statements ...
5859
----
5960
[%hardbreaks]
6061

0 commit comments

Comments
 (0)