Skip to content

Commit

Permalink
Merge pull request #3126 from alexrp/incoming
Browse files Browse the repository at this point in the history
Fix typo in tutorial: 'retern' -> 'return'
  • Loading branch information
brson committed Aug 7, 2012
2 parents 0755922 + 5f1987c commit e4b371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,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 `retern`
Additionally, within a `for` loop, `break`, `again`, and `return`
work just as they do with `while` and `loop`.

Consider again our `each` function, this time improved to
Expand Down

0 comments on commit e4b371f

Please sign in to comment.