From b46dcf96c61cf88e641f4046c51ec7ae7fa9fded Mon Sep 17 00:00:00 2001 From: Robert Thompson Date: Mon, 30 Dec 2019 15:13:26 -0500 Subject: [PATCH] oops, change both occurrences of digitsAndDash --- Sources/BigInt/BigInt.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/BigInt/BigInt.swift b/Sources/BigInt/BigInt.swift index b7cc02e..48b8fea 100644 --- a/Sources/BigInt/BigInt.swift +++ b/Sources/BigInt/BigInt.swift @@ -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() {