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.
2 parents 26dd508 + ffc8107 commit 50c0ac9Copy full SHA for 50c0ac9
Foundation/NSStringAPI.swift
@@ -1633,7 +1633,7 @@ extension StringProtocol where Index == String.Index {
1633
/// Returns `true` iff `other` is non-empty and contained within
1634
/// `self` by case-sensitive, non-literal search.
1635
///
1636
- /// Equivalent to `self.rangeOfString(other) != nil`
+ /// Equivalent to `self.range(of: other) != nil`
1637
public func contains<T : StringProtocol>(_ other: T) -> Bool {
1638
let r = self.range(of: other) != nil
1639
if #available(macOS 10.10, iOS 8.0, *) {
0 commit comments