From 5f1987c6c48fe8d194310a3629f04405f08710f0 Mon Sep 17 00:00:00 2001 From: alexrp Date: Tue, 7 Aug 2012 09:56:15 +0200 Subject: [PATCH] Fix typo in tutorial: 'retern' -> 'return' --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index ebdb2303dcc20..1d0e87d1b739e 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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