mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
elt -> element
This commit is contained in:
parent
552c164a46
commit
7e5b64bafe
@ -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;
|
||||
}
|
||||
~~~~
|
||||
|
Loading…
Reference in New Issue
Block a user