simplify test

This commit is contained in:
dylan_DPC 2020-03-27 02:45:56 +01:00
parent a9a2a319af
commit 7e7c2f19a3

View File

@ -2023,10 +2023,7 @@ pub trait Iterator {
/// I::Item: Ord,
/// {
/// iter.fold_first(|a, b| {
/// a.partial_cmp(b).map(move |cmp| match cmp {
/// Ordering::Greater | Ordering::Equal => a,
/// Ordering::Less => b,
/// })
/// if a >= b { a } else { b }
/// })
/// }
/// let a = [10, 20, 5, -23, 0];