mirror of
https://github.com/apple/swift-numerics
synced 2026-11-24 04:38:11 +00:00
oops, change both occurrences of digitsAndDash
This commit is contained in:
1 parent
eceae6d7bd
commit
b46dcf96c6
1 file changed
+1
-1
@@ -24,7 +24,7 @@ public struct BigInt: BinaryInteger, SignedNumeric, SignedInteger, CustomStringC
|
||||
}
|
||||
|
||||
let digits = Set("0123456789")
|
||||
guard description.allSatisfy({ digitsAndDash.contains($0) }) else { return nil }
|
||||
guard description.allSatisfy({ digits.contains($0) }) else { return nil }
|
||||
|
||||
var result: BigInt = 0
|
||||
for (i, char) in description.reversed().enumerated() {
|
||||
|
||||
Reference in new issue
Block a user