Skip to content

Commit 48dcf5c

Browse files
lucatorellaRobert Widmann
authored and
Robert Widmann
committed
Fix reference to range(of:) in the contains doc
Signed-off-by: Luca Torella <[email protected]>
1 parent 1793832 commit 48dcf5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Darwin/Foundation-swiftoverlay/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)