mirror of
https://github.com/apple/swift-numerics
synced 2026-11-29 05:24:24 +00:00
Update Sources/BigInt/BigInt.swift
As per benrimmington's excellent suggestion Co-Authored-By: Ben Rimmington <me@benrimmington.com>
This commit is contained in:
1 parent
ac50a90a60
commit
eceae6d7bd
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user