Skip to content

Commit 7d94b48

Browse files
committed
loop_break_value: address review comments on book addition
1 parent 52c3380 commit 7d94b48

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ The tracking issue for this feature is: [#37339]
44

55
[#37339]: https://github.com/rust-lang/rust/issues/37339
66

7-
Documentation to be appended to section 3.6 of the book: Loops (after "Loop Labels", or before if
8-
the "Break" section is moved). If this is deemed too complex a feature this early in the book, it
9-
could also be moved to a new section (please advise). This would allow examples breaking with
10-
non-primitive types, references, and discussion of coercion (probably unnecessary however).
7+
Documentation to be appended to section G of the book.
118

129
------------------------
1310

1411
### Loops as expressions
1512

16-
Like everything else in Rust, loops are expressions; for example, the following is perfectly legal,
13+
Like most things in Rust, loops are expressions; for example, the following is perfectly legal,
1714
if rather useless:
1815

1916
```rust

0 commit comments

Comments
 (0)