Skip to content

Commit 67e9a7a

Browse files
author
Daniel Patterson
committed
---
yaml --- r: 22110 b: refs/heads/snap-stage3 c: 55ab043 h: refs/heads/master v: v3
1 parent 8fd5664 commit 67e9a7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e8fe718bfd4d88b0bc59117326a14a10f2598568
4+
refs/heads/snap-stage3: 55ab0435e7973c397f9479b71cd0e113239b41a7
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ literals and most enum variants.
616616

617617
`while` produces a loop that runs as long as its given condition
618618
(which must have type `bool`) evaluates to true. Inside a loop, the
619-
keyword `break` can be used to abort the loop, and `again` can be used
619+
keyword `break` can be used to abort the loop, and `loop` can be used
620620
to abort the current iteration and continue with the next.
621621

622622
~~~~
@@ -1564,7 +1564,7 @@ Empty argument lists can be omitted from `do` expressions.
15641564
15651565
Most iteration in Rust is done with `for` loops. Like `do`,
15661566
`for` is a nice syntax for doing control flow with closures.
1567-
Additionally, within a `for` loop, `break`, `again`, and `return`
1567+
Additionally, within a `for` loop, `break`, `loop`, and `return`
15681568
work just as they do with `while` and `loop`.
15691569
15701570
Consider again our `each` function, this time improved to
@@ -1599,7 +1599,7 @@ With `for`, functions like `each` can be treated more
15991599
like builtin looping structures. When calling `each`
16001600
in a `for` loop, instead of returning `false` to break
16011601
out of the loop, you just write `break`. To skip ahead
1602-
to the next iteration, write `again`.
1602+
to the next iteration, write `loop`.
16031603
16041604
~~~~
16051605
# use each = vec::each;

0 commit comments

Comments
 (0)