From 7e5b64bafe3c0bf03d6b0bb339798dc380540bfc Mon Sep 17 00:00:00 2001 From: Ryan Scheel Date: Sun, 8 Jul 2012 14:11:14 -0700 Subject: [PATCH] elt -> element --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index dec2ab29caa7..f179ed2dbe57 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1981,7 +1981,7 @@ fn for_rev(vector: ~[T], action fn(T)) { fn map(vector: ~[T], function :fn(T) -> U) -> ~[U] { let mut accumulator = ~[]; - for vector.each |elt| { vec::push(accumulator, function(elt)); } + for vector.each |element| { vec::push(accumulator, function(eltement)); } ret accumulator; } ~~~~