diff --git a/doc/tutorial.md b/doc/tutorial.md index 3b2930347d3..60b2d9177e6 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1971,7 +1971,7 @@ they apply to. Thus, Rust allows functions and datatypes to have type parameters. ~~~~ -fn for_rev(vector: ~[T], action fn(T)) { +fn for_rev(vector: ~[T], action: fn(T)) { let mut i = vec::len(vector); while i > 0u { i -= 1u;