Skip to content

Commit 1199dbd

Browse files
authored
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.
2 parents bd8aa6d + 89d9a35 commit 1199dbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/num/f32.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl f32 {
394394

395395
/// Not a Number (NaN).
396396
///
397-
/// Note that IEEE-745 doesn't define just a single NaN value;
397+
/// Note that IEEE-754 doesn't define just a single NaN value;
398398
/// a plethora of bit patterns are considered to be NaN.
399399
/// Furthermore, the standard makes a difference
400400
/// between a "signaling" and a "quiet" NaN,
@@ -632,7 +632,7 @@ impl f32 {
632632
}
633633

634634
/// Returns `true` if `self` has a positive sign, including `+0.0`, NaNs with
635-
/// positive sign bit and positive infinity. Note that IEEE-745 doesn't assign any
635+
/// positive sign bit and positive infinity. Note that IEEE-754 doesn't assign any
636636
/// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
637637
/// the bit pattern of NaNs are conserved over arithmetic operations, the result of
638638
/// `is_sign_positive` on a NaN might produce an unexpected result in some cases.
@@ -654,7 +654,7 @@ impl f32 {
654654
}
655655

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

0 commit comments

Comments
 (0)