diff options
| author | vwkd <33468089+vwkd@users.noreply.github.com> | 2023-09-01 21:58:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-01 21:58:40 +0200 |
| commit | dfdab8fc629da55ec434d8838daaba9906a61445 (patch) | |
| tree | cd227391f7a9c75a0af482b6b2b5d4fb270bfe3e | |
| parent | 361f8ba847af0288b1beb3b84f6b7b4d3850bb43 (diff) | |
| download | rust-dfdab8fc629da55ec434d8838daaba9906a61445.tar.gz rust-dfdab8fc629da55ec434d8838daaba9906a61445.zip | |
Update mod.rs
| -rw-r--r-- | library/core/src/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 23cebdb6c3b..ab6dfb0a729 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -806,7 +806,7 @@ impl str { /// assert_eq!(Some((0, 'y')), char_indices.next()); // not (0, 'y̆') /// 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((4, 's')), char_indices.next()); /// |
