Skip to content

Change rangeOfString(other) to range(of: other) in the docs #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2018

Conversation

lucatorella
Copy link
Contributor

In the NSStringAPI.swift there was still a reference to the old rangeOfString() method. This method was renamed to range(to:) so I fixed the documentation otherwise it can create some confusion 🙂

I did the same fix here swiftlang/swift#20860

@lucatorella lucatorella changed the title Fix reference to range(of:) in the contains doc Change rangeOfString(other) to range(of: other) in the docs Nov 29, 2018
@ianpartridge
Copy link
Contributor

@swift-ci test and merge

@swift-ci swift-ci merged commit 50c0ac9 into swiftlang:master Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants