Skip to content

Commit 4bb3cf1

Browse files
[stdlib] Update WordPair: Comparable conformance (#79606)
1 parent 050c69d commit 4bb3cf1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

stdlib/public/Synchronization/Atomics/WordPair.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the Swift Atomics open source project
3+
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2023-2025 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -183,9 +183,9 @@ extension WordPair: Hashable {
183183
}
184184
}
185185

186-
@available(SwiftStdlib 6.2, *)
186+
@available(SwiftStdlib 6.1, *)
187187
extension WordPair: Comparable {
188-
@available(SwiftStdlib 6.2, *)
188+
@available(SwiftStdlib 6.1, *)
189189
@_alwaysEmitIntoClient
190190
@_transparent
191191
public static func <(lhs: WordPair, rhs: WordPair) -> Bool {

test/stdlib/Synchronization/Atomics/WordPair.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ suite.test("basics") {
4949

5050
} // if #available(SwiftStdlib 6.0, *)
5151

52-
if #available(SwiftStdlib 6.2, *) {
52+
if #available(SwiftStdlib 6.1, *) {
5353
suite.test("comparable") {
5454
let c0 = WordPair(first: 0, second: 0)
5555
let c1 = WordPair(first: 1, second: 0)
@@ -65,6 +65,6 @@ suite.test("comparable") {
6565
expectTrue(c4 < c5)
6666
expectFalse(c5 < c4)
6767
}
68-
} // if #available(SwiftStdlib 6.2, *)
68+
} // if #available(SwiftStdlib 6.1, *)
6969

7070
runAllTests()

0 commit comments

Comments
 (0)