summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-05 19:03:11 +0100
committerGitHub <noreply@github.com>2019-12-05 19:03:11 +0100
commitd060dc8b7444cc8a4bce4f0b007ca52ee60f830e (patch)
treea26d49a39dc1ccb3ffe6593d02cd887bda0b5ee7
parentRollup merge of #66863 - osa1:fix_66702, r=cramertj (diff)
parentFix documentation of pattern for str::matches() (diff)
downloadrust-d060dc8b7444cc8a4bce4f0b007ca52ee60f830e.tar.gz
rust-d060dc8b7444cc8a4bce4f0b007ca52ee60f830e.tar.bz2
rust-d060dc8b7444cc8a4bce4f0b007ca52ee60f830e.tar.xz
Rollup merge of #67002 - JayXon:patch-1, r=Dylan-DPC
Fix documentation of pattern for str::matches() Made it the same as rmatches()
-rw-r--r--src/libcore/str/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 25b7eec..b2a420f 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -3371,8 +3371,8 @@ impl str {
3371 /// An iterator over the disjoint matches of a pattern within the given string 3371 /// An iterator over the disjoint matches of a pattern within the given string
3372 /// slice. 3372 /// slice.
3373 /// 3373 ///
3374 /// The pattern can be any type that implements the Pattern trait. Notable 3374 /// The pattern can be a `&str`, [`char`], or a closure that determines if
3375 /// examples are `&str`, [`char`], and closures that determines the split. 3375 /// a character matches.
3376 /// 3376 ///
3377 /// # Iterator behavior 3377 /// # Iterator behavior
3378 /// 3378 ///