diff options
Diffstat (limited to 'src/libcoretest/iter.rs')
| -rw-r--r-- | src/libcoretest/iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoretest/iter.rs b/src/libcoretest/iter.rs index 99ac7cfed02..9b703a18cae 100644 --- a/src/libcoretest/iter.rs +++ b/src/libcoretest/iter.rs @@ -839,7 +839,7 @@ fn test_min_max_result() { #[test] fn test_iterate() { - let mut it = iterate(|x| x * 2, 1u); + let mut it = iterate(1u, |x| x * 2); assert_eq!(it.next(), Some(1u)); assert_eq!(it.next(), Some(2u)); assert_eq!(it.next(), Some(4u)); |
