about summary refs log tree commit diff
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2022-01-18 10:26:30 +0300
committerklensy <klensy@users.noreply.github.com>2022-01-18 10:30:32 +0300
commit51cd00c32f120d99249dd428983d4b3c2edff1f6 (patch)
treec98d00b23768d0c98ae8430bea992ae2c8829458
parente4ff9031acdb3579f61a67ded2cf0faa00bea3fc (diff)
downloadrust-51cd00c32f120d99249dd428983d4b3c2edff1f6.tar.gz
rust-51cd00c32f120d99249dd428983d4b3c2edff1f6.zip
fix typo in `max` description for f32/f64
-rw-r--r--library/core/src/num/f32.rs2
-rw-r--r--library/core/src/num/f64.rs2
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;