Skip to content

Commit

Permalink
Rollup merge of rust-lang#67002 - JayXon:patch-1, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix documentation of pattern for str::matches()

Made it the same as rmatches()
  • Loading branch information
Centril authored Dec 5, 2019
2 parents 3f4827c + 52649dd commit d060dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
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 d060dc8

Please sign in to comment.