Skip to content

Commit 7146a05

Browse files
syvba1phyr
andauthored
don't use unneeded closure
Co-authored-by: Alphyr <[email protected]>
1 parent e7a3ada commit 7146a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2608,7 +2608,7 @@ pub trait Iterator {
26082608
/// assert_eq!(
26092609
/// vec![2.4, f32::NAN, 1.3]
26102610
/// .into_iter()
2611-
/// .reduce(|a, b| f32::max(a, b))
2611+
/// .reduce(f32::max)
26122612
/// .unwrap(),
26132613
/// 2.4
26142614
/// );

0 commit comments

Comments
 (0)