Browse files

Fix some iter tests

  • Loading branch information...
1 parent 6d4621d commit 907fa74e8b98aa325ddd45d7de5e47772c27b165 @brson brson committed Dec 18, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/test/run-pass/iter-filter-to-vec.rs
  2. +1 −1 src/test/run-pass/iter-map-to-vec.rs
View
2 src/test/run-pass/iter-filter-to-vec.rs
@@ -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
2 src/test/run-pass/iter-map-to-vec.rs
@@ -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];

0 comments on commit 907fa74

Please sign in to comment.