Skip to content

Commit dfdab8f

Browse files
authored
Update mod.rs
1 parent 361f8ba commit dfdab8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ impl str {
806806
/// assert_eq!(Some((0, 'y')), char_indices.next()); // not (0, 'y̆')
807807
/// assert_eq!(Some((1, '\u{0306}')), char_indices.next());
808808
///
809-
/// // note the 3 here - the last character took up two bytes
809+
/// // note the 3 here - the previous character took up two bytes
810810
/// assert_eq!(Some((3, 'e')), char_indices.next());
811811
/// assert_eq!(Some((4, 's')), char_indices.next());
812812
///

0 commit comments

Comments
 (0)