about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <andersrb@gmail.com>2012-09-26 20:56:50 -0700
committerBrian Anderson <andersrb@gmail.com>2012-09-26 20:56:50 -0700
commit7f7af5f2ceedf533d2d09a1a2afd8b53031e5a9a (patch)
tree7f0c1c8d0ca44b493f9d39b5f4765f3c725cbc6e
parente8fe718bfd4d88b0bc59117326a14a10f2598568 (diff)
parent55ab0435e7973c397f9479b71cd0e113239b41a7 (diff)
downloadrust-7f7af5f2ceedf533d2d09a1a2afd8b53031e5a9a.tar.gz
rust-7f7af5f2ceedf533d2d09a1a2afd8b53031e5a9a.zip
Merge pull request #3605 from dbp/tutorial
tutorial: changing `again` to `loop`
-rw-r--r--doc/tutorial.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 88645a781e8..64a53cab069 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -616,7 +616,7 @@ literals and most enum variants.
 
 `while` produces a loop that runs as long as its given condition
 (which must have type `bool`) evaluates to true. Inside a loop, the
-keyword `break` can be used to abort the loop, and `again` can be used
+keyword `break` can be used to abort the loop, and `loop` can be used
 to abort the current iteration and continue with the next.
 
 ~~~~
@@ -1564,7 +1564,7 @@ Empty argument lists can be omitted from `do` expressions.
 
 Most iteration in Rust is done with `for` loops. Like `do`,
 `for` is a nice syntax for doing control flow with closures.
-Additionally, within a `for` loop, `break`, `again`, and `return`
+Additionally, within a `for` loop, `break`, `loop`, and `return`
 work just as they do with `while` and `loop`.
 
 Consider again our `each` function, this time improved to
@@ -1599,7 +1599,7 @@ With `for`, functions like `each` can be treated more
 like builtin looping structures. When calling `each`
 in a `for` loop, instead of returning `false` to break
 out of the loop, you just write `break`. To skip ahead
-to the next iteration, write `again`.
+to the next iteration, write `loop`.
 
 ~~~~
 # use each = vec::each;