Skip to content

Commit 0de63d9

Browse files
committed
Fix comment
1 parent b23a047 commit 0de63d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/traits/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,7 @@ pub trait Iterator {
21252125
fn min_by<F>(self, mut compare: F) -> Option<Self::Item>
21262126
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,
21272127
{
2128-
// switch to y even if it is strictly smaller, to preserve stability.
2128+
// only switch to y if it is strictly smaller, to preserve stability.
21292129
select_fold1(self, |x, y| compare(x, y) == Ordering::Greater)
21302130
}
21312131

0 commit comments

Comments
 (0)