Skip to content

Commit 52649dd

Browse files
authored
Fix documentation of pattern for str::matches()
Made it the same as rmatches()
1 parent 7afe6d9 commit 52649dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/str/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3371,8 +3371,8 @@ impl str {
33713371
/// An iterator over the disjoint matches of a pattern within the given string
33723372
/// slice.
33733373
///
3374-
/// The pattern can be any type that implements the Pattern trait. Notable
3375-
/// examples are `&str`, [`char`], and closures that determines the split.
3374+
/// The pattern can be a `&str`, [`char`], or a closure that determines if
3375+
/// a character matches.
33763376
///
33773377
/// # Iterator behavior
33783378
///

0 commit comments

Comments
 (0)