From 80522b2beef4e997a902fe20aaf40abdc2691870 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Tue, 14 Jul 2020 17:41:02 -0400 Subject: [PATCH] Apply suggestions from code review --- Sources/RealModule/ApproximateEquality.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RealModule/ApproximateEquality.swift b/Sources/RealModule/ApproximateEquality.swift index b19d67c..26e0714 100644 --- a/Sources/RealModule/ApproximateEquality.swift +++ b/Sources/RealModule/ApproximateEquality.swift @@ -137,12 +137,12 @@ extension Numeric where Magnitude: FloatingPoint { ) -> Bool { assert( absoluteTolerance >= 0 && absoluteTolerance.isFinite, - "absoluteTolerance should be non-negative and finite," + + "absoluteTolerance should be non-negative and finite, " + "but is \(absoluteTolerance)." ) assert( relativeTolerance >= 0 && relativeTolerance <= 1, - "relativeTolerance should be non-negative and <= 1," + + "relativeTolerance should be non-negative and <= 1, " + "but is \(relativeTolerance)." ) if self == other { return true }