Fix comment

This commit is contained in:
Tim Vermeulen 2019-03-12 17:53:25 +01:00
parent b23a0473b3
commit 0de63d901b

View file

@ -2125,7 +2125,7 @@ pub trait Iterator {
fn min_by<F>(self, mut compare: F) -> Option<Self::Item>
where Self: Sized, F: FnMut(&Self::Item, &Self::Item) -> Ordering,
{
// switch to y even if it is strictly smaller, to preserve stability.
// only switch to y if it is strictly smaller, to preserve stability.
select_fold1(self, |x, y| compare(x, y) == Ordering::Greater)
}