tutorial: Fix a test-failure due to typo
This commit is contained in:
parent
fb7f0a4ae1
commit
d95ab538c1
1 changed files with 1 additions and 1 deletions
|
@ -1971,7 +1971,7 @@ they apply to. Thus, Rust allows functions and datatypes to have type
|
||||||
parameters.
|
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);
|
let mut i = vec::len(vector);
|
||||||
while i > 0u {
|
while i > 0u {
|
||||||
i -= 1u;
|
i -= 1u;
|
||||||
|
|
Loading…
Reference in a new issue