Update Sources/BigInt/BigInt.swift

As per benrimmington's excellent suggestion

Co-Authored-By: Ben Rimmington <me@benrimmington.com>
This commit is contained in:
Robert ThompsonandBen Rimmington authored and GitHub committed 2019-12-30 15:12:20 -05:00
1 parent ac50a90a60
commit eceae6d7bd
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ public struct BigInt: BinaryInteger, SignedNumeric, SignedInteger, CustomStringC
}
}
let digitsAndDash = Set("0123456789")
let digits = Set("0123456789")
guard description.allSatisfy({ digitsAndDash.contains($0) }) else { return nil }
var result: BigInt = 0