]> git.lizzy.rs Git - rust.git/commit
auto merge of #17752 : SimonSapin/rust/patch-6, r=thestinger
authorbors <bors@rust-lang.org>
Sat, 4 Oct 2014 02:42:07 +0000 (02:42 +0000)
committerbors <bors@rust-lang.org>
Sat, 4 Oct 2014 02:42:07 +0000 (02:42 +0000)
commit908c9e6a1b94674eee2727edb25dda58727a03b7
treeb29f2ab5e1e977f316d202684c659dc40c280b8e
parent136ab3c6b1efc6605f317280f13d53a940ea7a8e
parent80eb616bd3e502d4fcb0541a92ec75f2921294d9
auto merge of #17752 : SimonSapin/rust/patch-6, r=thestinger

`v.len()` counts code units, not UTF-16 bytes. The lower bound is one UTF-8 byte per code unit, not per two code units.

I believe this is correct, but it’s late. Someone please double check.