Skip to content

Remove unnecessary Array copy. #2420

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
Jul 22, 2019

Conversation

drodriguez
Copy link
Contributor

Array.append(contentsOf:) supports any Sequence, and String.UTF8View is
a sequence, so there's no need to create an Array from it to append it.

From a post-merge feedback in #2393.

Array.append(contentsOf:) supports any Sequence, and String.UTF8View is
a sequence, so there's no need to create an Array from it to append it.

From a post-merge feedback in swiftlang#2393.
@drodriguez
Copy link
Contributor Author

@swift-ci please test Linux platform

@millenomi millenomi merged commit 63e62b9 into swiftlang:master Jul 22, 2019
@drodriguez drodriguez deleted the remove-utf8-array branch July 22, 2019 22:42
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