mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
tutorial: Fix a test-failure due to typo
This commit is contained in:
parent
fb7f0a4ae1
commit
d95ab538c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user