Skip to content

Commit 907fa74

Browse files
committed
Fix some iter tests
1 parent 6d4621d commit 907fa74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/run-pass/iter-filter-to-vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn is_even(+x: uint) -> bool { (x % 2) == 0 }
11+
fn is_even(x: &uint) -> bool { (*x % 2) == 0 }
1212

1313
fn main() {
1414
assert [1, 3].filter_to_vec(is_even) == ~[];

src/test/run-pass/iter-map-to-vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn inc(+x: uint) -> uint { x + 1 }
11+
fn inc(x: &uint) -> uint { *x + 1 }
1212

1313
fn main() {
1414
assert [1, 3].map_to_vec(inc) == ~[2, 4];

0 commit comments

Comments
 (0)