Skip to content

Commit a965778

Browse files
committed
Fix: is_sign_positive -> is_sign_negative
1 parent 3561187 commit a965778

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/num/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ impl f32 {
617617
/// negative sign bit and negative infinity. Note that IEEE-745 doesn't assign any
618618
/// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
619619
/// the bit pattern of NaNs are conserved over arithmetic operations, the result of
620-
/// `is_sign_positive` on a NaN might produce an unexpected result in some cases.
620+
/// `is_sign_negative` on a NaN might produce an unexpected result in some cases.
621621
/// See [explanation of NaN as a special value](f32) for more info.
622622
///
623623
/// ```

library/core/src/num/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ impl f64 {
625625
/// negative sign bit and negative infinity. Note that IEEE-745 doesn't assign any
626626
/// meaning to the sign bit in case of a NaN, and as Rust doesn't guarantee that
627627
/// the bit pattern of NaNs are conserved over arithmetic operations, the result of
628-
/// `is_sign_positive` on a NaN might produce an unexpected result in some cases.
628+
/// `is_sign_negative` on a NaN might produce an unexpected result in some cases.
629629
/// See [explanation of NaN as a special value](f32) for more info.
630630
///
631631
/// ```

0 commit comments

Comments
 (0)