Skip to content

Commit 11baa7a

Browse files
committed
Possible fix for label of isTotallyOrdered(below:).
1 parent 46c1f1e commit 11baa7a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stdlib/public/SDK/Foundation/Decimal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extension Decimal {
9999
return order == .orderedAscending || order == .orderedSame
100100
}
101101

102-
public func isTotallyOrdered(below other: Decimal) -> Bool {
102+
public func isTotallyOrdered(belowOrEqualTo other: Decimal) -> Bool {
103103
// Notes: Decimal does not have -0 or infinities to worry about
104104
if self.isNaN {
105105
return false

stdlib/public/core/FloatingPoint.swift.gyb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public protocol FloatingPoint: Comparable, Arithmetic,
435435
/// values of type `Self`, including non-canonical encodings, signed zeros,
436436
/// and NaNs. Because it is used much less frequently than the usual
437437
/// comparisons, there is no operator form of this relation.
438-
func isTotallyOrdered(below other: Self) -> Bool
438+
func isTotallyOrdered(belowOrEqualTo other: Self) -> Bool
439439

440440
/// True if and only if `self` is normal.
441441
///
@@ -708,7 +708,7 @@ public protocol BinaryFloatingPoint: FloatingPoint, ExpressibleByFloatLiteral {
708708

709709
func isLessThanOrEqualTo<Other: BinaryFloatingPoint>(other: Other) -> Bool
710710

711-
func isTotallyOrdered<Other: BinaryFloatingPoint>(below other: Other) -> Bool
711+
func isTotallyOrdered<Other: BinaryFloatingPoint>(belowOrEqualTo other: Other) -> Bool
712712
*/
713713
}
714714

@@ -852,7 +852,7 @@ extension BinaryFloatingPoint {
852852
significandBitPattern: magnitudeOf.significandBitPattern)
853853
}
854854

855-
public func isTotallyOrdered(below other: Self) -> Bool {
855+
public func isTotallyOrdered(belowOrEqualTo other: Self) -> Bool {
856856
// Quick return when possible.
857857
if self < other { return true }
858858
if other > self { return false }
@@ -909,7 +909,7 @@ extension BinaryFloatingPoint {
909909
return Other(self).isLessThanOrEqualTo(other)
910910
}
911911

912-
public func isTotallyOrdered<Other: BinaryFloatingPoint>(before other: Other) -> Bool {
912+
public func isTotallyOrdered<Other: BinaryFloatingPoint>(belowOrEqualTo other: Other) -> Bool {
913913
if Self.significandBitCount >= Other.significandBitCount {
914914
return self.totalOrder(with: Self(other))
915915
}

0 commit comments

Comments
 (0)