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.
range(of:)
1 parent 1793832 commit 48dcf5cCopy full SHA for 48dcf5c
Darwin/Foundation-swiftoverlay/NSStringAPI.swift
@@ -1671,7 +1671,7 @@ extension StringProtocol where Index == String.Index {
1671
/// Returns `true` if `other` is non-empty and contained within `self` by
1672
/// case-sensitive, non-literal search. Otherwise, returns `false`.
1673
///
1674
- /// Equivalent to `self.rangeOfString(other) != nil`
+ /// Equivalent to `self.range(of: other) != nil`
1675
public func contains<T : StringProtocol>(_ other: T) -> Bool {
1676
let r = self.range(of: other) != nil
1677
if #available(macOS 10.10, iOS 8.0, *) {
0 commit comments