mirror of
https://github.com/apple/swift-numerics
synced 2026-11-27 05:04:26 +00:00
Apply suggestions from code review
This commit is contained in:
1 parent
a7ef6cd74c
commit
80522b2bee
1 file changed
+2
-2
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user