Skip to content

Commit 4c894b9

Browse files
[stdlib] Fix comment
Amendment to my own commit.
1 parent fc9887f commit 4c894b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/IntegerParsing.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ internal func _parseAsciiAsIntMax(
9797
if utf16.isEmpty { return nil }
9898
// Parse (optional) sign.
9999
let (digitsUTF16, hasMinus) = _parseOptionalAsciiSign(utf16)
100-
// Parse digits. +1 for because e.g. Int8's range is -128...127.
100+
// Parse digits. +1 for negatives because e.g. Int8's range is -128...127.
101101
let absValueMax = UIntMax(bitPattern: maximum) + (hasMinus ? 1 : 0)
102102
guard let absValue =
103103
_parseUnsignedAsciiAsUIntMax(digitsUTF16, radix, absValueMax)

0 commit comments

Comments
 (0)