]> git.lizzy.rs Git - rust.git/commit
Optimise Chars::last()
authorOliver Middleton <olliemail27@gmail.com>
Sat, 19 Nov 2016 18:43:41 +0000 (18:43 +0000)
committerOliver Middleton <olliemail27@gmail.com>
Sat, 19 Nov 2016 18:43:41 +0000 (18:43 +0000)
commitde2f61740d4622f3938cb6ddb01854c80c1e9082
treefb8f65912bbb88c966909695ec04e810d84d90c6
parent5bd1e7f59ffe6126db57ea94b90690d1ac39b932
Optimise Chars::last()

The default implementation of last() goes through the entire iterator
but that's not needed here.
src/libcollectionstest/str.rs
src/libcore/str/mod.rs