@@ -616,7 +616,7 @@ literals and most enum variants.
616
616
617
617
` while ` produces a loop that runs as long as its given condition
618
618
(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
620
620
to abort the current iteration and continue with the next.
621
621
622
622
~~~~
@@ -1564,7 +1564,7 @@ Empty argument lists can be omitted from `do` expressions.
1564
1564
1565
1565
Most iteration in Rust is done with `for` loops. Like `do`,
1566
1566
`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`
1568
1568
work just as they do with `while` and `loop`.
1569
1569
1570
1570
Consider again our `each` function, this time improved to
@@ -1599,7 +1599,7 @@ With `for`, functions like `each` can be treated more
1599
1599
like builtin looping structures. When calling `each`
1600
1600
in a `for` loop, instead of returning `false` to break
1601
1601
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 `.
1603
1603
1604
1604
~~~~
1605
1605
# use each = vec::each;
0 commit comments