diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-18 22:00:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 22:00:51 +0100 |
| commit | 63376bb0fabb1599fa39444b60f65bb8ee5bdd06 (patch) | |
| tree | 25476bdc2b5ef22ac73beb88d27d5887776516a4 | |
| parent | 73988b6d82fede9361be3a4df36253e025a113be (diff) | |
| parent | 51cd00c32f120d99249dd428983d4b3c2edff1f6 (diff) | |
| download | rust-63376bb0fabb1599fa39444b60f65bb8ee5bdd06.tar.gz rust-63376bb0fabb1599fa39444b60f65bb8ee5bdd06.zip | |
Rollup merge of #93026 - klensy:f-typo, r=scottmcm
fix typo in `max` description for f32/f64
| -rw-r--r-- | library/core/src/num/f32.rs | 2 | ||||
| -rw-r--r-- | library/core/src/num/f64.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs index 85ceede5b9e..0b8ed0cc174 100644 --- a/library/core/src/num/f32.rs +++ b/library/core/src/num/f32.rs @@ -675,7 +675,7 @@ impl f32 { /// Returns the maximum of the two numbers. /// /// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs. - /// This matches the behavior of libm’s fmin. + /// This matches the behavior of libm’s fmax. /// /// ``` /// let x = 1.0f32; diff --git a/library/core/src/num/f64.rs b/library/core/src/num/f64.rs index 4049c95b130..5a3cd2a4b92 100644 --- a/library/core/src/num/f64.rs +++ b/library/core/src/num/f64.rs @@ -691,7 +691,7 @@ impl f64 { /// Returns the maximum of the two numbers. /// /// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs. - /// This matches the behavior of libm’s fmin. + /// This matches the behavior of libm’s fmax. /// /// ``` /// let x = 1.0_f64; |
