Skip to content

Commit 2a47658

Browse files
committed
Backwards compatibility note
1 parent 1d5eb5b commit 2a47658

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/core/FloatingPointParsing.swift.gyb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ extension ${Self}: LosslessStringConvertible {
157157
/// ${Self}("0x1.25e4") // Incorrect exponent format
158158
///
159159
/// - Parameter text: An input string to convert to a `${Self}?` instance.
160+
///
161+
/// Backwards compatibility note: Prior to Swift 5.4, a decimal or
162+
/// hexadecimal input string whose value was too large to represent
163+
/// as a finite `${Self}` instance would return `nil` instead of
164+
/// `${Self}.infinity`.
165+
///
160166
@inlinable
161167
public init?<S: StringProtocol>(_ text: S) {
162168
%if bits == 16:

0 commit comments

Comments
 (0)