From ae1422391c93cd0fe75e6fc94670c96ffae8dc8f Mon Sep 17 00:00:00 2001 From: Without Boats Date: Sat, 14 May 2016 17:58:48 -0700 Subject: [PATCH] Correct the docs on str::trim_matches This pattern cannot be a str because str's pattern is not double-ended. --- src/libcollections/str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ///