Skip to content

Commit e4b371f

Browse files
committed
Merge pull request #3126 from alexrp/incoming
Fix typo in tutorial: 'retern' -> 'return'
2 parents 0755922 + 5f1987c commit e4b371f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ Empty argument lists can be omitted from `do` expressions.
17571757

17581758
Most iteration in Rust is done with `for` loops. Like `do`,
17591759
`for` is a nice syntax for doing control flow with closures.
1760-
Additionally, within a `for` loop, `break`, `again`, and `retern`
1760+
Additionally, within a `for` loop, `break`, `again`, and `return`
17611761
work just as they do with `while` and `loop`.
17621762

17631763
Consider again our `each` function, this time improved to

0 commit comments

Comments
 (0)