diff options
author | Artur Roos <artur.roos@ktnlvr.dev> | 2025-05-01 22:09:07 +0300 |
---|---|---|
committer | Artur Roos <artur.roos@ktnlvr.dev> | 2025-05-01 22:09:07 +0300 |
commit | 175f71750f149643cff56f88b6f7e63c88843dea (patch) | |
tree | 8acc7dbf97908f66ac93053b1256a1a75ea11d37 | |
parent | 36ae6575fd85dd6eb9a00e097e47b38fa25235a0 (diff) | |
download | rust-175f71750f149643cff56f88b6f7e63c88843dea.tar.gz rust-175f71750f149643cff56f88b6f7e63c88843dea.zip |
Simplify docs for breaking out of a named code block
-rw-r--r-- | library/std/src/keyword_docs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index b0e55c78725..71b68233f78 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -91,7 +91,7 @@ mod as_keyword {} /// /// 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. -/// If no value is specified, `break;` returns `()`. +/// If no value is specified for `break;` it returns `()`. /// Every `break` within a loop must return the same type. /// /// ```rust @@ -110,7 +110,7 @@ mod as_keyword {} /// ``` /// /// It is also possible to exit from any *labelled* block returning the value early. -/// If no value specified `break;` returns `()`. +/// If no value is specified for `break;` it returns `()`. /// /// ```rust /// let inputs = vec!["Cow", "Cat", "Dog", "Snake", "Cod"]; |