mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-26 22:05:14 +00:00
don't use unneeded closure
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
This commit is contained in:
parent
e7a3ada210
commit
7146a05a43
@ -2608,7 +2608,7 @@ pub trait Iterator {
|
||||
/// assert_eq!(
|
||||
/// vec![2.4, f32::NAN, 1.3]
|
||||
/// .into_iter()
|
||||
/// .reduce(|a, b| f32::max(a, b))
|
||||
/// .reduce(f32::max)
|
||||
/// .unwrap(),
|
||||
/// 2.4
|
||||
/// );
|
||||
|
Loading…
Reference in New Issue
Block a user