Skip to content

Commit 7ab35b7

Browse files
committed
loop_break_value doc: remove note about other loops
1 parent 3f980be commit 7ab35b7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/doc/unstable-book/src/language-features/loop-break-value.md

-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ let n: i32 = loop {
5757
};
5858
```
5959

60-
For now, breaking with a value is only possible with `loop`; the same functionality may
61-
some day be added to `for` and `while` (this would require some new syntax like
62-
`while f() { break 1; } default { break 0; }`).
63-
6460
#### Break: label, value
6561

6662
Four forms of `break` are available, where EXPR is some expression which evaluates to a value:

0 commit comments

Comments
 (0)