Skip to content

Commit fb7f0a4

Browse files
committed
It's hard to type when the cursor is not where you are actually typing.
1 parent 7e5b64b commit fb7f0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ fn for_rev<T>(vector: ~[T], action fn(T)) {
19811981
19821982
fn map<T, U>(vector: ~[T], function :fn(T) -> U) -> ~[U] {
19831983
let mut accumulator = ~[];
1984-
for vector.each |element| { vec::push(accumulator, function(eltement)); }
1984+
for vector.each |element| { vec::push(accumulator, function(element)); }
19851985
ret accumulator;
19861986
}
19871987
~~~~

0 commit comments

Comments
 (0)