]> git.lizzy.rs Git - rust.git/commit
TRPL: minor correction on how `chars().nth()` work
authorVincent Bernat <vincent@bernat.im>
Sat, 8 Aug 2015 22:56:38 +0000 (00:56 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 8 Aug 2015 22:56:38 +0000 (00:56 +0200)
commitb67adbed5a3bb9820aeee8eef6d82ad20e028355
treef44a0503876c6c8ff0e368020cd281b2dcf62019
parentcbf4c342cf9facb660df181c9c1d7d9a8934d5a1
TRPL: minor correction on how `chars().nth()` work

The previous wording was confusing. While would we need to go through
the whole list just to find the first code point? `chars()` being an
iterator, we only need to walk from the beginning of the list.
src/doc/trpl/strings.md