Rollup merge of #33645 - withoutboats:woboats_trim_matches_doc, r=steveklabnik

Correct the docs on str::trim_matches

This pattern cannot be a str because str's pattern is not double-ended.
This commit is contained in:
Steve Klabnik 2016-06-07 10:43:55 -04:00
commit 98988ba05e

View File

@ -1404,8 +1404,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
///