Apply suggestions from code review

This commit is contained in:
Stephen Canon authored and GitHub committed 2020-07-14 17:41:02 -04:00
1 parent a7ef6cd74c
commit 80522b2bee
1 file changed
+2 -2
+2 -2
View File
@@ -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 }