Skip to content

Commit 0100d7c

Browse files
authored
Merge pull request #28263 from CodaFi/a-flock-of-seagulls
2 parents 0a7c93d + e6992d3 commit 0100d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Darwin/Foundation/NSStringAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ extension StringProtocol where Index == String.Index {
16711671
/// Returns `true` if `other` is non-empty and contained within `self` by
16721672
/// case-sensitive, non-literal search. Otherwise, returns `false`.
16731673
///
1674-
/// Equivalent to `self.rangeOfString(other) != nil`
1674+
/// Equivalent to `self.range(of: other) != nil`
16751675
public func contains<T : StringProtocol>(_ other: T) -> Bool {
16761676
let r = self.range(of: other) != nil
16771677
if #available(macOS 10.10, iOS 8.0, *) {

0 commit comments

Comments
 (0)