-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Mention labelled blocks in break
docs
#122562
Conversation
`break` doesn't require a loop, so note this in the docs. This is covered in the linked sections of the rust reference, but this page implied that `break` is only for loops.
rustbot has assigned @workingjubilee. Use r? to explicitly pick a reviewer |
Apparently we call them "breakable expressions": https://doc.rust-lang.org/reference/expressions/loop-expr.html Amusing. |
I get a vague feeling some of the docs should be reviewed in light of that fact I noted, but this is a fine improvement. @bors r+ rollup |
…ingjubilee Mention labelled blocks in `break` docs `break` doesn't require a loop, so note this in the docs. This is covered in the linked sections of the rust reference, but this page implied that `break` is only for loops.
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#122254 (Detect calls to .clone() on T: !Clone types on borrowck errors) - rust-lang#122495 (Visually mark 👻hidden👻 items with document-hidden-items) - rust-lang#122543 (Add `#![rustc_never_type_mode = "..."]` crate-level attribute to allow experimenting) - rust-lang#122560 (Safe Transmute: Use 'not yet supported', not 'unspecified' in errors) - rust-lang#122562 (Mention labelled blocks in `break` docs) - rust-lang#122563 (CI: cache PR CI Docker builds) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#122562 - Wilfred:break_keyword_docs, r=workingjubilee Mention labelled blocks in `break` docs `break` doesn't require a loop, so note this in the docs. This is covered in the linked sections of the rust reference, but this page implied that `break` is only for loops.
break
doesn't require a loop, so note this in the docs. This is covered in the linked sections of the rust reference, but this page implied thatbreak
is only for loops.