Skip to content

Commit

Permalink
loop_break_value doc: remove note about other loops
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed May 17, 2017
1 parent 3f980be commit 7ab35b7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7ab35b7

Please sign in to comment.