We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8500d0c commit 9af4a76Copy full SHA for 9af4a76
stdlib/public/Synchronization/Atomics/WordPair.swift
@@ -187,15 +187,11 @@ extension WordPair: Hashable {
187
extension WordPair: Comparable {
188
// Note: This function can have a lower availability than the conformance
189
// itself because it's always emit into client.
190
- @available(SwiftStdlib 6.0, *)
+ @available(SwiftStdlib 6.2, *)
191
@_alwaysEmitIntoClient
192
@_transparent
193
public static func <(lhs: WordPair, rhs: WordPair) -> Bool {
194
- if lhs.first != rhs.first {
195
- return lhs.first < rhs.first
196
- } else {
197
- return lhs.second < rhs.second
198
- }
+ (lhs.first, lhs.second) < (rhs.first, rhs.second)
199
}
200
201
0 commit comments