-
Notifications
You must be signed in to change notification settings - Fork 532
Feature/loop break value #56
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
Feature/loop break value #56
Conversation
An inline code snippet was using triple quotes instead of single ones, breaking syntax highlight in vim.
This commit introduces to the reference the changes made by the loop_break_value feature, defined in RFC 1624.
Note: I had to use |
src/expressions.md
Outdated
loop, but `continue 'label` may be used to specify the loop affected. | ||
A `continue` expression is only permitted in the body of a loop. | ||
|
||
### Break-with-value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be worded a bit better. Something like "break
with return values" maybe?
I went with "associated break" here to match the terminology given by PR rust-lang#56.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! We should wait until the tests actually pass due to the feature landing, though 👍
I think this just needs the tests to be rerun (by pushing something) to be merged? |
@matthewjasper yup and it now passes. Woo! Thanks @dhardy ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Required
Continue from @pietroalbini's PR #53.
Tracking issue: #37339.
This makes quite a few changes to the structure and content of the whole loops section, hopefully for the better.
Really this whole document needs an index, but that's another job.