Skip to content

Commit 0890090

Browse files
committed
Specify loop label format. Fixes #3105.
1 parent 223d6a1 commit 0890090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch03-05-control-flow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ next iteration.
232232
If you have loops within loops, `break` and `continue` apply to the innermost
233233
loop at that point. You can optionally specify a *loop label* on a loop that we
234234
can then use with `break` or `continue` to specify that those keywords apply to
235-
the labeled loop instead of the innermost loop. Here’s an example with two
236-
nested loops:
235+
the labeled loop instead of the innermost loop. Loop labels must begin with a
236+
single quote. Here’s an example with two nested loops:
237237

238238
```rust
239239
{{#rustdoc_include ../listings/ch03-common-programming-concepts/no-listing-32-5-loop-labels/src/main.rs}}

0 commit comments

Comments
 (0)