Skip to content

Commit

Permalink
Correct the docs on str::trim_matches
Browse files Browse the repository at this point in the history
This pattern cannot be a str because str's pattern is not double-ended.
  • Loading branch information
withoutboats committed May 15, 2016
1 parent 8492b6a commit ae14223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1617,8 +1617,8 @@ impl str {
/// Returns a string slice with all prefixes and suffixes that match a
/// pattern repeatedly removed.
///
/// The pattern can be a `&str`, [`char`], or a closure that determines
/// if a character matches.
/// The pattern can be a [`char`] or a closure that determines if a
/// character matches.
///
/// [`char`]: primitive.char.html
///
Expand Down

0 comments on commit ae14223

Please sign in to comment.