Skip to content

Commit ef46563

Browse files
authored
Merge pull request #65086 from lorentey/adjust-CharacterRecognizer-conformances
2 parents 347e565 + a1dae65 commit ef46563

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/public/core/StringGraphemeBreaking.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,14 +559,14 @@ extension Unicode {
559559
}
560560
}
561561

562-
@available(SwiftStdlib 5.8, *)
562+
@available(SwiftStdlib 5.9, *)
563563
extension Unicode._CharacterRecognizer: Equatable {
564564
public static func ==(left: Self, right: Self) -> Bool {
565565
left._previous == right._previous && left._state == right._state
566566
}
567567
}
568568

569-
@available(SwiftStdlib 5.8, *)
569+
@available(SwiftStdlib 5.9, *)
570570
extension Unicode._CharacterRecognizer: CustomStringConvertible {
571571
public var description: String {
572572
return "\(_state)U+\(String(_previous.value, radix: 16, uppercase: true))"

test/stdlib/CharacterRecognizer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if #available(SwiftStdlib 5.8, *) {
115115
}
116116
}
117117

118-
if #available(SwiftStdlib 5.8, *) {
118+
if #available(SwiftStdlib 5.9, *) {
119119
suite.test("Equatable") {
120120
var r1 = Unicode._CharacterRecognizer()
121121
var r2 = Unicode._CharacterRecognizer()
@@ -135,7 +135,7 @@ if #available(SwiftStdlib 5.8, *) {
135135
}
136136
}
137137

138-
if #available(SwiftStdlib 5.8, *) {
138+
if #available(SwiftStdlib 5.9, *) {
139139
suite.test("CustomStringConvertible") {
140140
var r = Unicode._CharacterRecognizer()
141141
expectEqual("\(r)", "[]U+0")

0 commit comments

Comments
 (0)