Skip to content

Commit f7df83d

Browse files
authored
Rollup merge of rust-lang#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
2 parents 10be6e6 + f2f8bbc commit f7df83d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_unicode/char.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ impl char {
392392
C::len_utf16(self)
393393
}
394394

395-
/// Returns an interator over the bytes of this character as UTF-8.
395+
/// Returns an iterator over the bytes of this character as UTF-8.
396396
///
397397
/// The returned iterator also has an `as_slice()` method to view the
398398
/// encoded bytes as a byte slice.
@@ -415,7 +415,7 @@ impl char {
415415
C::encode_utf8(self)
416416
}
417417

418-
/// Returns an interator over the `u16` entries of this character as UTF-16.
418+
/// Returns an iterator over the `u16` entries of this character as UTF-16.
419419
///
420420
/// The returned iterator also has an `as_slice()` method to view the
421421
/// encoded form as a slice.

0 commit comments

Comments
 (0)