don't use unneeded closure

Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
This commit is contained in:
Smittyvb 2021-05-26 20:38:50 -04:00 committed by GitHub
parent 7146a05a43
commit b00f6fc8a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
/// );