diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 2059943bfdf..7322ad38ff4 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -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 ///