We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9887f commit 4c894b9Copy full SHA for 4c894b9
stdlib/public/core/IntegerParsing.swift.gyb
@@ -97,7 +97,7 @@ internal func _parseAsciiAsIntMax(
97
if utf16.isEmpty { return nil }
98
// Parse (optional) sign.
99
let (digitsUTF16, hasMinus) = _parseOptionalAsciiSign(utf16)
100
- // Parse digits. +1 for because e.g. Int8's range is -128...127.
+ // Parse digits. +1 for negatives because e.g. Int8's range is -128...127.
101
let absValueMax = UIntMax(bitPattern: maximum) + (hasMinus ? 1 : 0)
102
guard let absValue =
103
_parseUnsignedAsciiAsUIntMax(digitsUTF16, radix, absValueMax)
0 commit comments