From eceae6d7bde01d3f33931c0b4db7511e1e2129a9 Mon Sep 17 00:00:00 2001 From: Robert Thompson Date: Mon, 30 Dec 2019 15:12:20 -0500 Subject: [PATCH] Update Sources/BigInt/BigInt.swift As per benrimmington's excellent suggestion Co-Authored-By: Ben Rimmington --- 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 a54a376..b7cc02e 100644 --- a/Sources/BigInt/BigInt.swift +++ b/Sources/BigInt/BigInt.swift @@ -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