Skip to content

Commit

Permalink
Unrolled build for rust-lang#122562
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Mar 15, 2024
2 parents 1ca424c + e1e719e commit 6210049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod as_keyword {}

#[doc(keyword = "break")]
//
/// Exit early from a loop.
/// Exit early from a loop or labelled block.
///
/// When `break` is encountered, execution of the associated loop body is
/// immediately terminated.
Expand Down

0 comments on commit 6210049

Please sign in to comment.