Rollup merge of #27611 - vincentbernat:fix/doc/chars-iterator, r=steveklabnik

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.

Note that I am not a native English speaker and I have still difficulties to spot if a "the" is needed somewhere. Feel free to take this PR as a mere suggestion.

r? @steveklabnik
This commit is contained in:
Manish Goregaokar 2015-08-11 13:26:46 +05:30
commit a917f61569
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ You can get something similar to an index like this:
let dog = hachiko.chars().nth(1); // kinda like hachiko[1]
```
This emphasizes that we have to go through the whole list of `chars`.
This emphasizes that we have to walk from the beginning of the list of `chars`.
## Slicing