don't use unneeded closure
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
This commit is contained in:
parent
7146a05a43
commit
b00f6fc8a1
1 changed files with 1 additions and 1 deletions
|
@ -2646,7 +2646,7 @@ pub trait Iterator {
|
|||
/// assert_eq!(
|
||||
/// vec![2.4, f32::NAN, 1.3]
|
||||
/// .into_iter()
|
||||
/// .reduce(|a, b| f32::min(a, b))
|
||||
/// .reduce(f32::min)
|
||||
/// .unwrap(),
|
||||
/// 1.3
|
||||
/// );
|
||||
|
|
Loading…
Reference in a new issue