diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-24 15:18:48 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-24 15:18:48 +0530 |
| commit | f7df83d115b543b0f417eb7b07b4b416990e44a8 (patch) | |
| tree | 866578485edccb85e314ce5885d96b4ac1ee3438 | |
| parent | 10be6e6c9e5af5344cc85ff642128335f791d498 (diff) | |
| parent | f2f8bbc49f240c9494f876c57389ad58fe7d6bb0 (diff) | |
Rollup merge of #34977 - wettowelreactor:patch-3, r=steveklabnik
Fixed to spelling errors in char.rs Fixed two small spelling mistakes (interator -> iterator) in the documentation for encode_utf8 and encode_utf16
| -rw-r--r-- | src/librustc_unicode/char.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 7445ff94eb5..1ea0f8d70a8 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -392,7 +392,7 @@ impl char { C::len_utf16(self) } - /// Returns an interator over the bytes of this character as UTF-8. + /// Returns an iterator over the bytes of this character as UTF-8. /// /// The returned iterator also has an `as_slice()` method to view the /// encoded bytes as a byte slice. @@ -415,7 +415,7 @@ impl char { C::encode_utf8(self) } - /// Returns an interator over the `u16` entries of this character as UTF-16. + /// Returns an iterator over the `u16` entries of this character as UTF-16. /// /// The returned iterator also has an `as_slice()` method to view the /// encoded form as a slice. |
