File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6d6038a1944394fc5e64048aea6fdbad4f59ee15
2
+ refs/heads/master: eadc8a7b45b6897640c44b14e81c2c272d364bb7
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5
5
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1
Original file line number Diff line number Diff line change @@ -728,10 +728,11 @@ pub trait IteratorExt: Iterator + Sized {
728
728
P : FnMut ( Self :: Item ) -> bool ,
729
729
Self : ExactSizeIterator + DoubleEndedIterator
730
730
{
731
- let mut i = self . len ( ) - 1 ;
731
+ let mut i = self . len ( ) ;
732
+
732
733
while let Some ( v) = self . next_back ( ) {
733
734
if predicate ( v) {
734
- return Some ( i) ;
735
+ return Some ( i - 1 ) ;
735
736
}
736
737
i -= 1 ;
737
738
}
You can’t perform that action at this time.
0 commit comments