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
This commit is contained in:
commit
f7df83d115
1 changed files with 2 additions and 2 deletions
|
@ -392,7 +392,7 @@ impl char {
|
||||||
C::len_utf16(self)
|
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
|
/// The returned iterator also has an `as_slice()` method to view the
|
||||||
/// encoded bytes as a byte slice.
|
/// encoded bytes as a byte slice.
|
||||||
|
@ -415,7 +415,7 @@ impl char {
|
||||||
C::encode_utf8(self)
|
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
|
/// The returned iterator also has an `as_slice()` method to view the
|
||||||
/// encoded form as a slice.
|
/// encoded form as a slice.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue