diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index ede9a28dcbe..5223c43acc2 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -1158,7 +1158,7 @@ pub fn find<'a, P: Pattern<'a>>(&'a self, pat: P) -> Option { pat.into_searcher(self).next_match().map(|(i, _)| i) } - /// Returns the byte index for the first character of the rightmost match of the pattern in + /// Returns the byte index for the first character of the last match of the pattern in /// this string slice. /// /// Returns [`None`] if the pattern doesn't match.