Skip to content

Add comment to goto example code to indicate that a label must be followed by a statement #494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2019
Merged

Conversation

per1234
Copy link
Collaborator

@per1234 per1234 commented Feb 3, 2019

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.


Originally reported at http://forum.arduino.cc/index.php?topic=443558.msg4036044#msg4036044

…lowed 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.
@per1234 per1234 merged commit 217a129 into arduino:master Feb 3, 2019
@per1234 per1234 deleted the improve-goto-example branch February 3, 2019 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant