Skip to content

Commit 021862d

Browse files
committed
fix min
1 parent b942d0a commit 021862d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/stream/stream/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -786,15 +786,14 @@ extension_trait! {
786786
# }) }
787787
```
788788
"#]
789-
fn min_by<F>(
789+
fn min<F>(
790790
self,
791-
compare: F,
792-
) -> impl Future<Output = Option<Self::Item>> [MinByFuture<Self, F, Self::Item>]
791+
) -> impl Future<Output = Option<Self::Item>> [MinFuture<Self, F, Self::Item>]
793792
where
794793
Self: Sized,
795794
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
796795
{
797-
MinByFuture::new(self, compare)
796+
MinFuture::new(self)
798797
}
799798

800799
#[doc = r#"

0 commit comments

Comments
 (0)