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.
2 parents 38af324 + a3d5af5 commit 81431b6Copy full SHA for 81431b6
stdlib/public/core/IntegerParsing.swift.gyb
@@ -119,7 +119,7 @@ extension ${Self} {
119
/// Construct from an ASCII representation in the given `radix`.
120
///
121
/// If `text` does not match the regular expression
122
- /// "[+-][0-9a-zA-Z]+", or the value it denotes in the given `radix`
+ /// "[+-]?[0-9a-zA-Z]+", or the value it denotes in the given `radix`
123
/// is not representable, the result is `nil`.
124
public init?(_ text: String, radix: Int = 10) {
125
if let value = _parseAsciiAs${'' if signed else 'U'}IntMax(
0 commit comments