diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index d7c11f32404..3364d7e1697 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -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 ///