Skip to content

Commit

Permalink
It's hard to type when the cursor is not where you are actually typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Jul 8, 2012
1 parent 7e5b64b commit fb7f0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial.md
Expand Up @@ -1981,7 +1981,7 @@ fn for_rev<T>(vector: ~[T], action fn(T)) {
fn map<T, U>(vector: ~[T], function :fn(T) -> U) -> ~[U] {
let mut accumulator = ~[];
for vector.each |element| { vec::push(accumulator, function(eltement)); }
for vector.each |element| { vec::push(accumulator, function(element)); }
ret accumulator;
}
~~~~
Expand Down

0 comments on commit fb7f0a4

Please sign in to comment.