Skip to content

Commit 733a1f9

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 164742 b: refs/heads/try c: aa921b6 h: refs/heads/master v: v3
1 parent 0d38642 commit 733a1f9

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
@@ -2,7 +2,7 @@
22
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5-
refs/heads/try: b3cd05642c98feccee93295a14efa933776cf3e6
5+
refs/heads/try: aa921b61622a6dc08d5c70cb6a217b1f6d304aac
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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)