Skip to content

Commit

Permalink
Fix documentation of pattern for str::matches()
Browse files Browse the repository at this point in the history
Made it the same as rmatches()
  • Loading branch information
JayXon committed Dec 3, 2019
1 parent 7afe6d9 commit 52649dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/str/mod.rs
Expand Up @@ -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
///
Expand Down

0 comments on commit 52649dd

Please sign in to comment.