diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-08-11 13:26:46 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-08-11 16:48:02 +0530 |
| commit | a917f61569e7d291a9d8c8faa76f287ee9f49253 (patch) | |
| tree | a97c9da03b78aa3f32e65b0dde3c69937b58ca1f /src | |
| parent | be2d4fbcb0208a8853de1da5961d31a86e1efdc2 (diff) | |
| parent | b67adbed5a3bb9820aeee8eef6d82ad20e028355 (diff) | |
| download | rust-a917f61569e7d291a9d8c8faa76f287ee9f49253.tar.gz rust-a917f61569e7d291a9d8c8faa76f287ee9f49253.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/strings.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/strings.md b/src/doc/trpl/strings.md index 7d5c43ea14c..aa1944a0993 100644 --- a/src/doc/trpl/strings.md +++ b/src/doc/trpl/strings.md @@ -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 |
