Browse Source

Merge #158

158: Fix the parameter name in the FloatCore::max example r=cuviper a=cuviper

bors r+

Co-authored-by: Josh Stone <[email protected]>
bors[bot] 5 years ago
parent
commit
ea2ff8df7e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/float.rs

+ 2 - 2
src/float.rs

@@ -606,8 +606,8 @@ pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy {
     /// use num_traits::float::FloatCore;
     /// use std::{f32, f64};
     ///
-    /// fn check<T: FloatCore>(x: T, y: T, min: T) {
-    ///     assert!(x.max(y) == min);
+    /// fn check<T: FloatCore>(x: T, y: T, max: T) {
+    ///     assert!(x.max(y) == max);
     /// }
     ///
     /// check(1.0f32, 2.0, 2.0);