]> git.lizzy.rs Git - rust.git/commitdiff
loop_break_value doc: remove note about other loops
authorDiggory Hardy <git@dhardy.name>
Wed, 17 May 2017 12:00:10 +0000 (13:00 +0100)
committerDiggory Hardy <git@dhardy.name>
Wed, 17 May 2017 12:00:10 +0000 (13:00 +0100)
src/doc/unstable-book/src/language-features/loop-break-value.md

index 9e36ea7b1a76291c44229b707145c6d1b4a2cd11..e8fefe3b73344b4376cfce092dc8b9d37cf21bff 100644 (file)
@@ -57,10 +57,6 @@ let n: i32 = loop {
 };
 ```
 
-For now, breaking with a value is only possible with `loop`; the same functionality may
-some day be added to `for` and `while` (this would require some new syntax like
-`while f() { break 1; } default { break 0; }`).
-
 #### Break: label, value
 
 Four forms of `break` are available, where EXPR is some expression which evaluates to a value: