about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorYves Dorfsman <yves@zioup.com>2019-10-18 19:49:09 -0600
committerYves Dorfsman <yves@zioup.com>2019-10-18 19:49:09 -0600
commit11214a63125efc187ef0c3acd90f8f8cf7c93dc6 (patch)
treedc50feca9295890cabdbb524851ed39bf7f6f87d /src/libstd
parent52c771377f865f04940c294815309e6005663e88 (diff)
downloadrust-11214a63125efc187ef0c3acd90f8f8cf7c93dc6.tar.gz
rust-11214a63125efc187ef0c3acd90f8f8cf7c93dc6.zip
reworded loop value sentence
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/keyword_docs.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs
index 7d678ee3879..ab8a55660cb 100644
--- a/src/libstd/keyword_docs.rs
+++ b/src/libstd/keyword_docs.rs
@@ -72,8 +72,9 @@ mod as_keyword { }
 /// println!("Bye.");
 ///```
 ///
-/// When associated with `loop`, but not with any other kind of loop expression,
-/// `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.
+/// If no value is specified, `break;` returns `()`.
 /// Every `break` within a loop must return the same type.
 ///
 /// ```rust