We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 361f8ba commit dfdab8fCopy full SHA for dfdab8f
library/core/src/str/mod.rs
@@ -806,7 +806,7 @@ impl str {
806
/// assert_eq!(Some((0, 'y')), char_indices.next()); // not (0, 'y̆')
807
/// assert_eq!(Some((1, '\u{0306}')), char_indices.next());
808
///
809
- /// // note the 3 here - the last character took up two bytes
+ /// // note the 3 here - the previous character took up two bytes
810
/// assert_eq!(Some((3, 'e')), char_indices.next());
811
/// assert_eq!(Some((4, 's')), char_indices.next());
812
0 commit comments