From 52649ddfbd7cd8c5eb1a66ef3f593cdfb6174d55 Mon Sep 17 00:00:00 2001 From: Sen Jiang Date: Tue, 3 Dec 2019 14:31:41 -0800 Subject: [PATCH] Fix documentation of pattern for str::matches() Made it the same as rmatches() --- src/libcore/str/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 25b7eec5b3343..b2a420f3c4377 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 ///