Skip to content

Commit 2faff99

Browse files
blake2-ppcthestinger
authored andcommitted
---
yaml --- r: 63855 b: refs/heads/snap-stage3 c: b9cf6a3 h: refs/heads/master i: 63853: 0dec8aa 63851: 3d5a185 63847: 744bba0 63839: c0ead60 v: v3
1 parent 9d7b14d commit 2faff99

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ee7307e6cb9e942fc1ef27109bfbc6fbf730ee3c
4+
refs/heads/snap-stage3: b9cf6a33d2b5c0006f780c01bcaae4047551eb75
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ impl<'self, A, St> UnfoldrIterator<'self, A, St> {
983983
/// Creates a new iterator with the specified closure as the "iterator
984984
/// function" and an initial state to eventually pass to the iterator
985985
#[inline]
986-
pub fn new<'a>(f: &'a fn(&mut St) -> Option<A>, initial_state: St)
986+
pub fn new<'a>(initial_state: St, f: &'a fn(&mut St) -> Option<A>)
987987
-> UnfoldrIterator<'a, A, St> {
988988
UnfoldrIterator {
989989
f: f,
@@ -1174,7 +1174,7 @@ mod tests {
11741174
}
11751175
}
11761176

1177-
let mut it = UnfoldrIterator::new(count, 0);
1177+
let mut it = UnfoldrIterator::new(0, count);
11781178
let mut i = 0;
11791179
for it.advance |counted| {
11801180
assert_eq!(counted, i);

branches/snap-stage3/src/test/run-pass/unfoldr-cross-crate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() {
2424
}
2525
}
2626

27-
let mut it = UnfoldrIterator::new(count, 0);
27+
let mut it = UnfoldrIterator::new(0, count);
2828
let mut i = 0;
2929
for it.advance |counted| {
3030
assert_eq!(counted, i);

0 commit comments

Comments
 (0)