elt -> element

This commit is contained in:
Ryan Scheel 2012-07-08 14:11:14 -07:00
parent 552c164a46
commit 7e5b64bafe

View File

@ -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 |elt| { vec::push(accumulator, function(elt)); }
for vector.each |element| { vec::push(accumulator, function(eltement)); }
ret accumulator;
}
~~~~