We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c7713 commit 11214a6Copy full SHA for 11214a6
src/libstd/keyword_docs.rs
@@ -72,8 +72,9 @@ mod as_keyword { }
72
/// println!("Bye.");
73
///```
74
///
75
-/// When associated with `loop`, but not with any other kind of loop expression,
76
-/// `break` can return a value. When no value is specified, `break;` returns `()`.
+/// When associated with `loop`, a break expression may be used to return a value from that loop.
+/// This is only valid with `loop` and not with any other type of loop.
77
+/// If no value is specified, `break;` returns `()`.
78
/// Every `break` within a loop must return the same type.
79
80
/// ```rust
0 commit comments