Fix some iter tests

This commit is contained in:
Brian Anderson 2012-12-18 15:08:19 -08:00
parent 6d4621d85f
commit 907fa74e8b
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn is_even(+x: uint) -> bool { (x % 2) == 0 }
fn is_even(x: &uint) -> bool { (*x % 2) == 0 }
fn main() {
assert [1, 3].filter_to_vec(is_even) == ~[];

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn inc(+x: uint) -> uint { x + 1 }
fn inc(x: &uint) -> uint { *x + 1 }
fn main() {
assert [1, 3].map_to_vec(inc) == ~[2, 4];