Skip to content

Commit bd8aa6d

Browse files
authored
Rollup merge of rust-lang#100660 - PunkyMunky64:patch-2, r=thomcc
Fixed a few documentation errors Quick pull request; IEEE-754, not IEEE-745. May save someone a quick second some time.
2 parents 36d8d55 + 683b3f4 commit bd8aa6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/num/f64.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl f64 {
393393

394394
/// Not a Number (NaN).
395395
///
396-
/// Note that IEEE-745 doesn't define just a single NaN value;
396+
/// Note that IEEE-754 doesn't define just a single NaN value;
397397
/// a plethora of bit patterns are considered to be NaN.
398398
/// Furthermore, the standard makes a difference
399399
/// between a "signaling" and a "quiet" NaN,
@@ -624,7 +624,7 @@ impl f64 {
624624
}
625625

626626
/// Returns `true` if `self` has a positive sign, including `+0.0`, NaNs with
627-
/// positive sign bit and positive infinity. Note that IEEE-745 doesn't assign any
627+
/// positive sign bit and positive infinity. Note that IEEE-754 doesn't assign any
628628
/// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
629629
/// the bit pattern of NaNs are conserved over arithmetic operations, the result of
630630
/// `is_sign_positive` on a NaN might produce an unexpected result in some cases.
@@ -655,7 +655,7 @@ impl f64 {
655655
}
656656

657657
/// Returns `true` if `self` has a negative sign, including `-0.0`, NaNs with
658-
/// negative sign bit and negative infinity. Note that IEEE-745 doesn't assign any
658+
/// negative sign bit and negative infinity. Note that IEEE-754 doesn't assign any
659659
/// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
660660
/// the bit pattern of NaNs are conserved over arithmetic operations, the result of
661661
/// `is_sign_negative` on a NaN might produce an unexpected result in some cases.

0 commit comments

Comments
 (0)