about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPunkyMunky64 <46407361+PunkyMunky64@users.noreply.github.com>2022-08-16 22:29:14 -0700
committerGitHub <noreply@github.com>2022-08-16 22:29:14 -0700
commit683b3f4e6e57897cefadc157ce704c0c4d209b04 (patch)
tree30e2c0f91910e3ff74e47246b1436dad81687db5
parent86c6ebee8fa0a5ad1e18e375113b06bd2849b634 (diff)
downloadrust-683b3f4e6e57897cefadc157ce704c0c4d209b04.tar.gz
rust-683b3f4e6e57897cefadc157ce704c0c4d209b04.zip
Fixed a few documentation errors
Quick pull request; IEEE-754, not IEEE-745. May save someone a quick second some time.
-rw-r--r--library/core/src/num/f64.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/num/f64.rs b/library/core/src/num/f64.rs
index 75c92c2f883..b5c8241d294 100644
--- a/library/core/src/num/f64.rs
+++ b/library/core/src/num/f64.rs
@@ -393,7 +393,7 @@ impl f64 {
 
     /// Not a Number (NaN).
     ///
-    /// Note that IEEE-745 doesn't define just a single NaN value;
+    /// Note that IEEE-754 doesn't define just a single NaN value;
     /// a plethora of bit patterns are considered to be NaN.
     /// Furthermore, the standard makes a difference
     /// between a "signaling" and a "quiet" NaN,
@@ -624,7 +624,7 @@ impl f64 {
     }
 
     /// Returns `true` if `self` has a positive sign, including `+0.0`, NaNs with
-    /// positive sign bit and positive infinity. Note that IEEE-745 doesn't assign any
+    /// positive sign bit and positive infinity. Note that IEEE-754 doesn't assign any
     /// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
     /// the bit pattern of NaNs are conserved over arithmetic operations, the result of
     /// `is_sign_positive` on a NaN might produce an unexpected result in some cases.
@@ -655,7 +655,7 @@ impl f64 {
     }
 
     /// Returns `true` if `self` has a negative sign, including `-0.0`, NaNs with
-    /// negative sign bit and negative infinity. Note that IEEE-745 doesn't assign any
+    /// negative sign bit and negative infinity. Note that IEEE-754 doesn't assign any
     /// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
     /// the bit pattern of NaNs are conserved over arithmetic operations, the result of
     /// `is_sign_negative` on a NaN might produce an unexpected result in some cases.