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:
Mazdak Farrokhzad 2019-12-05 19:03:11 +01:00 committed by GitHub
commit d060dc8b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3371,8 +3371,8 @@ impl str {
/// An iterator over the disjoint matches of a pattern within the given string
/// slice.
///
/// The pattern can be any type that implements the Pattern trait. Notable
/// examples are `&str`, [`char`], and closures that determines the split.
/// The pattern can be a `&str`, [`char`], or a closure that determines if
/// a character matches.
///
/// # Iterator behavior
///