Skip to content

Commit 175f717

Browse files
committed
Simplify docs for breaking out of a named code block
1 parent 36ae657 commit 175f717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/keyword_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ mod as_keyword {}
9191
///
9292
/// When associated with `loop`, a break expression may be used to return a value from that loop.
9393
/// This is only valid with `loop` and not with any other type of loop.
94-
/// If no value is specified, `break;` returns `()`.
94+
/// If no value is specified for `break;` it returns `()`.
9595
/// Every `break` within a loop must return the same type.
9696
///
9797
/// ```rust
@@ -110,7 +110,7 @@ mod as_keyword {}
110110
/// ```
111111
///
112112
/// It is also possible to exit from any *labelled* block returning the value early.
113-
/// If no value specified `break;` returns `()`.
113+
/// If no value is specified for `break;` it returns `()`.
114114
///
115115
/// ```rust
116116
/// let inputs = vec!["Cow", "Cat", "Dog", "Snake", "Cod"];

0 commit comments

Comments
 (0)