Rollup merge of #42586 - ideasman42:patch-1, r=steveklabnik
Docstring: add missing term 'disjoint' from matches, rmatches This follows `match_indices`
This commit is contained in:
commit
b646ca9267
@ -1320,7 +1320,7 @@ pub fn rsplitn<'a, P: Pattern<'a>>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>
|
||||
core_str::StrExt::rsplitn(self, n, pat)
|
||||
}
|
||||
|
||||
/// An iterator over the matches of a pattern within the given string
|
||||
/// An iterator over the disjoint matches of a pattern within the given string
|
||||
/// slice.
|
||||
///
|
||||
/// The pattern can be a `&str`, [`char`], or a closure that
|
||||
@ -1359,7 +1359,7 @@ pub fn matches<'a, P: Pattern<'a>>(&'a self, pat: P) -> Matches<'a, P> {
|
||||
core_str::StrExt::matches(self, pat)
|
||||
}
|
||||
|
||||
/// An iterator over the matches of a pattern within this string slice,
|
||||
/// An iterator over the disjoint matches of a pattern within this string slice,
|
||||
/// yielded in reverse order.
|
||||
///
|
||||
/// The pattern can be a `&str`, [`char`], or a closure that determines if
|
||||
|
Loading…
Reference in New Issue
Block a user