mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Rollup merge of #67002 - JayXon:patch-1, r=Dylan-DPC
Fix documentation of pattern for str::matches() Made it the same as rmatches()
This commit is contained in:
commit
d060dc8b74
@ -3371,8 +3371,8 @@ impl str {
|
|||||||
/// An iterator over the disjoint matches of a pattern within the given string
|
/// An iterator over the disjoint matches of a pattern within the given string
|
||||||
/// slice.
|
/// slice.
|
||||||
///
|
///
|
||||||
/// The pattern can be any type that implements the Pattern trait. Notable
|
/// The pattern can be a `&str`, [`char`], or a closure that determines if
|
||||||
/// examples are `&str`, [`char`], and closures that determines the split.
|
/// a character matches.
|
||||||
///
|
///
|
||||||
/// # Iterator behavior
|
/// # Iterator behavior
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user