diff --git a/doc/tutorial.md b/doc/tutorial.md index dec2ab29caa..f179ed2dbe5 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; } ~~~~