oops, change both occurrences of digitsAndDash

This commit is contained in:
Robert Thompson committed 2019-12-30 15:13:26 -05:00
1 parent eceae6d7bd
commit b46dcf96c6
1 file changed
+1 -1
+1 -1
View File
@@ -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() {