Fix a merge issue with min_max.rs

This commit is contained in:
Herbert Wolverson 2023-11-16 12:20:35 -06:00
parent affde610ba
commit 56286f69ee

View File

@ -44,10 +44,10 @@ impl<
values.sort();
let length = values.len();
let median = if length == 0 { T::zero() } else {
values[length/2]
median(&values)
};
Self { max, min, avg: median(stats): median }
Self { max, min, avg: median }
}
}