We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f980be commit 7ab35b7Copy full SHA for 7ab35b7
src/doc/unstable-book/src/language-features/loop-break-value.md
@@ -57,10 +57,6 @@ let n: i32 = loop {
57
};
58
```
59
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
-
64
#### Break: label, value
65
66
Four forms of `break` are available, where EXPR is some expression which evaluates to a value:
0 commit comments