Skip to content

Commit 1eac99e

Browse files
committed
Remove feature line, change title
1 parent 1101033 commit 1eac99e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/expressions.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ Rust supports three loop expressions:
600600

601601
All three types of loop support [`break` expressions](#break-expressions),
602602
[`continue` expressions](#continue-expressions), and [labels](#loop-labels).
603-
Only `loop` supports [break-with-value](#break-with-value).
603+
Only `loop` supports [evaluation to non-trivial values](#break-and-loop-values).
604604

605605
### Infinite loops
606606

@@ -699,7 +699,7 @@ be used to specify which enclosing loop is affected. Example:
699699
```
700700

701701
A `break` expression is only permitted in the body of a loop, and has one of
702-
the forms `break`, `break 'label` or (see [break-with-value](#break-with-value))
702+
the forms `break`, `break 'label` or ([see below](#break-and-loop-values))
703703
`break EXPR` or `break 'label EXPR`.
704704

705705
### `continue` expressions
@@ -714,14 +714,13 @@ Like `break`, `continue` is normally associated with the innermost enclosing
714714
loop, but `continue 'label` may be used to specify the loop affected.
715715
A `continue` expression is only permitted in the body of a loop.
716716

717-
### Break-with-value
717+
### `break` and loop values
718718

719719
When associated with a `loop`, a break expression may be used to return a value
720720
from that loop, via one of the forms `break EXPR` or `break 'label EXPR`, where
721721
`EXPR` is an expression whose result is returned from the `loop`. For example:
722722

723723
```rust
724-
#![feature(loop_break_value)]
725724
let (mut a, mut b) = (1, 1);
726725
let result = loop {
727726
if b > 10 {

0 commit comments

Comments
 (0)