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:
Without Boats 2016-05-14 17:58:48 -07:00
parent 8492b6aa45
commit ae1422391c

View File

@ -1617,8 +1617,8 @@ pub fn trim_right(&self) -> &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
///