Skip to content

Commit 11214a6

Browse files
committed
reworded loop value sentence
1 parent 52c7713 commit 11214a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/keyword_docs.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ mod as_keyword { }
7272
/// println!("Bye.");
7373
///```
7474
///
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 `()`.
75+
/// When associated with `loop`, a break expression may be used to return a value from that loop.
76+
/// This is only valid with `loop` and not with any other type of loop.
77+
/// If no value is specified, `break;` returns `()`.
7778
/// Every `break` within a loop must return the same type.
7879
///
7980
/// ```rust

0 commit comments

Comments
 (0)