diff options
Diffstat (limited to 'src/test/bench/shootout-fibo.rs')
| -rw-r--r-- | src/test/bench/shootout-fibo.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/bench/shootout-fibo.rs b/src/test/bench/shootout-fibo.rs index eec54198c04..a363d19b328 100644 --- a/src/test/bench/shootout-fibo.rs +++ b/src/test/bench/shootout-fibo.rs @@ -9,6 +9,7 @@ // except according to those terms. use std::os; +use std::vec_ng::Vec; fn fib(n: int) -> int { if n < 2 { @@ -25,8 +26,8 @@ fn main() { } else if args.len() <= 1u { vec!(~"", ~"30") } else { - args + args.move_iter().collect() }; - let n = from_str::<int>(args[1]).unwrap(); + let n = from_str::<int>(*args.get(1)).unwrap(); println!("{}\n", fib(n)); } |
