提交 fb7f0a4a 编写于 作者: R Ryan Scheel

It's hard to type when the cursor is not where you are actually typing.

上级 7e5b64ba
......@@ -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;
}
~~~~
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册