From 51604cd196265a1e4444cef0a7ac749e34f5e64e Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Wed, 12 Oct 2022 15:11:57 -0700 Subject: [PATCH] [OrderedCollections] Oops, restore custom wording for `areInIncreasingOrder` variants --- .../OrderedDictionary/OrderedDictionary+Elements.swift | 3 ++- .../OrderedDictionary+Partial MutableCollection.swift | 3 ++- .../OrderedSet/OrderedSet+Partial MutableCollection.swift | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift index 018810ea..d1667630 100644 --- a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift +++ b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift @@ -431,7 +431,8 @@ extension OrderedDictionary.Elements { /// (Transitive incomparability) /// /// The sorting algorithm is guaranteed to be stable. A stable sort - /// preserves the relative order of elements that compare as equal. + /// preserves the relative order of elements for which + /// `areInIncreasingOrder` does not establish an order. /// /// - Parameter areInIncreasingOrder: A predicate that returns `true` if its /// first argument should be ordered before its second argument; diff --git a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial MutableCollection.swift b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial MutableCollection.swift index 0715e9b0..f43d6993 100644 --- a/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial MutableCollection.swift +++ b/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Partial MutableCollection.swift @@ -83,7 +83,8 @@ extension OrderedDictionary { /// (Transitive incomparability) /// /// The sorting algorithm is guaranteed to be stable. A stable sort - /// preserves the relative order of elements that compare as equal. + /// preserves the relative order of elements for which + /// `areInIncreasingOrder` does not establish an order. /// /// - Parameter areInIncreasingOrder: A predicate that returns `true` if its /// first argument should be ordered before its second argument; diff --git a/Sources/OrderedCollections/OrderedSet/OrderedSet+Partial MutableCollection.swift b/Sources/OrderedCollections/OrderedSet/OrderedSet+Partial MutableCollection.swift index 2e37db2b..953b8a7a 100644 --- a/Sources/OrderedCollections/OrderedSet/OrderedSet+Partial MutableCollection.swift +++ b/Sources/OrderedCollections/OrderedSet/OrderedSet+Partial MutableCollection.swift @@ -217,7 +217,8 @@ extension OrderedSet { /// (Transitive incomparability) /// /// The sorting algorithm is guaranteed to be stable. A stable sort - /// preserves the relative order of elements that compare as equal. + /// preserves the relative order of elements for which + /// `areInIncreasingOrder` does not establish an order. /// /// - Parameter areInIncreasingOrder: A predicate that returns `true` if its /// first argument should be ordered before its second argument;