Skip to content

Commit ffc8107

Browse files
committed
Fix reference to range(of:) in the contains doc
Signed-off-by: Luca Torella <[email protected]>
1 parent 26dd508 commit ffc8107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSStringAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ extension StringProtocol where Index == String.Index {
16331633
/// Returns `true` iff `other` is non-empty and contained within
16341634
/// `self` by case-sensitive, non-literal search.
16351635
///
1636-
/// Equivalent to `self.rangeOfString(other) != nil`
1636+
/// Equivalent to `self.range(of: other) != nil`
16371637
public func contains<T : StringProtocol>(_ other: T) -> Bool {
16381638
let r = self.range(of: other) != nil
16391639
if #available(macOS 10.10, iOS 8.0, *) {

0 commit comments

Comments
 (0)