diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-05 19:03:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-05 19:03:11 +0100 |
| commit | d060dc8b7444cc8a4bce4f0b007ca52ee60f830e (patch) | |
| tree | a26d49a39dc1ccb3ffe6593d02cd887bda0b5ee7 /src/libcore | |
| parent | 3f4827c785858c11b1ad7c84ca7793cc916cbf26 (diff) | |
| parent | 52649ddfbd7cd8c5eb1a66ef3f593cdfb6174d55 (diff) | |
| download | rust-d060dc8b7444cc8a4bce4f0b007ca52ee60f830e.tar.gz rust-d060dc8b7444cc8a4bce4f0b007ca52ee60f830e.zip | |
Rollup merge of #67002 - JayXon:patch-1, r=Dylan-DPC
Fix documentation of pattern for str::matches() Made it the same as rmatches()
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 25b7eec5b33..b2a420f3c43 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -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 /// |
