Skip to content

Commit 442e5b9

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163270 b: refs/heads/snap-stage3 c: aa921b6 h: refs/heads/master v: v3
1 parent ea3ecad commit 442e5b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: b3cd05642c98feccee93295a14efa933776cf3e6
4+
refs/heads/snap-stage3: aa921b61622a6dc08d5c70cb6a217b1f6d304aac
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libcore/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ pub trait ExactSizeIterator<A> : DoubleEndedIterator<A> {
749749
///
750750
/// If no element matches, None is returned.
751751
#[inline]
752-
fn rposition(&mut self, predicate: |A| -> bool) -> Option<uint> {
752+
fn rposition<P>(&mut self, mut predicate: P) -> Option<uint> where P: FnMut(A) -> bool {
753753
let len = self.len();
754754
for i in range(0, len).rev() {
755755
if predicate(self.next_back().expect("rposition: incorrect ExactSizeIterator")) {

0 commit comments

Comments
 (0)