Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/public/Darwin/Foundation/NSStringAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ extension StringProtocol where Index == String.Index {
/// Returns `true` if `other` is non-empty and contained within `self` by
/// case-sensitive, non-literal search. Otherwise, returns `false`.
///
/// Equivalent to `self.rangeOfString(other) != nil`
/// Equivalent to `self.range(of: other) != nil`
public func contains<T : StringProtocol>(_ other: T) -> Bool {
let r = self.range(of: other) != nil
if #available(macOS 10.10, iOS 8.0, *) {
Expand Down