提交 d95ab538 编写于 作者: B Brian Anderson

tutorial: Fix a test-failure due to typo

上级 fb7f0a4a
......@@ -1971,7 +1971,7 @@ they apply to. Thus, Rust allows functions and datatypes to have type
parameters.
~~~~
fn for_rev<T>(vector: ~[T], action fn(T)) {
fn for_rev<T>(vector: ~[T], action: fn(T)) {
let mut i = vec::len(vector);
while i > 0u {
i -= 1u;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册