diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-17 12:33:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 12:33:02 +0200 |
| commit | 1199dbdcf5f651060c1cf1ab089c3feafcd54100 (patch) | |
| tree | 099d3858d3f4e681d153efb1761fb8951b08afa5 | |
| parent | bd8aa6dffea121b3633b544a58cdaa9820612483 (diff) | |
| parent | 89d9a35b3e3f0a4f3b0f9215c26b315b7cef6f5f (diff) | |
| download | rust-1199dbdcf5f651060c1cf1ab089c3feafcd54100.tar.gz rust-1199dbdcf5f651060c1cf1ab089c3feafcd54100.zip | |
Rollup merge of #100661 - PunkyMunky64:patch-1, r=thomcc
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/f32.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs index 6548ad2e514..23c46f1a74a 100644 --- a/library/core/src/num/f32.rs +++ b/library/core/src/num/f32.rs @@ -394,7 +394,7 @@ impl f32 { /// 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, @@ -632,7 +632,7 @@ impl f32 { } /// 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. @@ -654,7 +654,7 @@ impl f32 { } /// 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. |
