tutorial: Fix a test-failure due to typo

This commit is contained in:
Brian Anderson 2012-07-08 15:11:32 -07:00
parent fb7f0a4ae1
commit d95ab538c1

View File

@ -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;