]> git.lizzy.rs Git - rust.git/commit
Auto merge of #34425 - tbu-:pr_len_instead_of_size_hint, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 24 Jun 2016 16:03:54 +0000 (09:03 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Jun 2016 16:03:54 +0000 (09:03 -0700)
commit4b89debc7b776a947331dd0ceaa52ba8476157b2
treed05eb419e87868c9f3478567922d918c05f9e01d
parent7189ae36116491ea4936ad34461c8d89f704608b
parent8ff5c4394cdfc11f29de36123a6c9618e12c9904
Auto merge of #34425 - tbu-:pr_len_instead_of_size_hint, r=alexcrichton

Use `len` instead of `size_hint` where appropiate

This makes it clearer that we're not just looking for a lower bound but
rather know that the iterator is an `ExactSizeIterator`.
src/libcore/str/mod.rs