Update mod.rs

This commit is contained in:
vwkd 2023-09-01 21:58:40 +02:00 committed by GitHub
parent 361f8ba847
commit dfdab8fc62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -806,7 +806,7 @@ impl str {
/// assert_eq!(Some((0, 'y')), char_indices.next()); // not (0, 'y̆') /// assert_eq!(Some((0, 'y')), char_indices.next()); // not (0, 'y̆')
/// assert_eq!(Some((1, '\u{0306}')), char_indices.next()); /// assert_eq!(Some((1, '\u{0306}')), char_indices.next());
/// ///
/// // note the 3 here - the last character took up two bytes /// // note the 3 here - the previous character took up two bytes
/// assert_eq!(Some((3, 'e')), char_indices.next()); /// assert_eq!(Some((3, 'e')), char_indices.next());
/// assert_eq!(Some((4, 's')), char_indices.next()); /// assert_eq!(Some((4, 's')), char_indices.next());
/// ///