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:
parent
8492b6aa45
commit
ae1422391c
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user