Skip to content

Change the name of the hasSuffix argument of the StringProtocol requirement to suffix from prefix. #37336

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
May 8, 2021

Conversation

ensan-hcl
Copy link
Contributor

@ensan-hcl ensan-hcl commented May 8, 2021

SR-14611

https://github.com/apple/swift/blob/7f4a1d5e20b4f43192d2cee9dd40a6869dba7f82/stdlib/public/core/StringProtocol.swift#L46
The argument of hasSuffix that StringProtocol requires is currently wrongly named. This PR replaces its name into suffix from prefix.

Because the argument is labeled as _, this is an internal change. It wouldn't affect anywhere.

I posted a question on the forum just in case. I'm sorry if there is some purpose to name that prefix.

@xwu
Copy link
Collaborator

xwu commented May 8, 2021

@swift-ci test

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.

2 participants