mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
_BSubstring: Conform to Comparable
This commit is contained in:
3 files changed
+34
-11
No files matched your search
@@ -60,7 +60,7 @@ extension BigString: Equatable {
|
||||
@available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *)
|
||||
extension BigString: Comparable {
|
||||
public static func < (left: Self, right: Self) -> Bool {
|
||||
left._guts.characterwiseIsLess(than: right._guts)
|
||||
left._guts < right._guts
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user