Skip to content

Commit 7de0f56

Browse files
authored
Merge pull request #2256 from ikesyo/init-rawvalue-explicit-type
[gardening][NSTextCheckingKey] Use explicit String type in `init(rawValue:)` for consistency with the codebase
2 parents 990c791 + ed6500f commit 7de0f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSTextCheckingResult.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public struct NSTextCheckingKey: RawRepresentable, Hashable {
212212
self.init(rawValue: string)
213213
}
214214

215-
public init(rawValue: Self.RawValue) {
215+
public init(rawValue: String) {
216216
self.rawValue = rawValue
217217
}
218218
}

0 commit comments

Comments
 (0)