Skip to content

[stdlib] use Collection.isEmpty rather than Collection.count #12638

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
Oct 27, 2017

Conversation

glessard
Copy link
Contributor

Use Collection.isEmpty rather than Collection.count in UnsafeMutableRawBufferPointer's ranged subscript setter. As suggested by @airspeedswift and @atrick in #12504.

@airspeedswift
Copy link
Member

@swift-ci please test

@DougGregor
Copy link
Member

LGTM, merging.

@DougGregor DougGregor merged commit e423640 into swiftlang:master Oct 27, 2017
@glessard glessard deleted the umrbp-tweak branch November 17, 2017 21:36
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