loop_break_value doc: remove note about other loops
This commit is contained in:
parent
3f980beb3e
commit
7ab35b703a
1 changed files with 0 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue