Skip to content

Commit a078c33

Browse files
xwustephentyrone
authored andcommitted
[stdlib] Change documented behavior of FloatingPoint.significand (#26390)
1 parent 0bae3ec commit a078c33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/FloatingPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public protocol FloatingPoint: SignedNumeric, Strideable, Hashable
468468
/// is defined as follows:
469469
///
470470
/// - If `x` is zero, then `x.significand` is 0.0.
471-
/// - If `x` is infinity, then `x.significand` is 1.0.
471+
/// - If `x` is infinite, then `x.significand` is infinity.
472472
/// - If `x` is NaN, then `x.significand` is NaN.
473473
/// - Note: The significand is frequently also called the *mantissa*, but
474474
/// significand is the preferred terminology in the [IEEE 754

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ extension ${Self}: BinaryFloatingPoint {
786786
/// is defined as follows:
787787
///
788788
/// - If `x` is zero, then `x.significand` is 0.0.
789-
/// - If `x` is infinity, then `x.significand` is 1.0.
789+
/// - If `x` is infinite, then `x.significand` is infinity.
790790
/// - If `x` is NaN, then `x.significand` is NaN.
791791
/// - Note: The significand is frequently also called the *mantissa*, but
792792
/// significand is the preferred terminology in the [IEEE 754

0 commit comments

Comments
 (0)