]> git.lizzy.rs Git - rust.git/commitdiff
Fix documentation for StrExt::trim_matches
authorKevin Butler <haqkrs@gmail.com>
Tue, 17 Mar 2015 20:23:42 +0000 (20:23 +0000)
committerKevin Butler <haqkrs@gmail.com>
Tue, 17 Mar 2015 20:37:20 +0000 (20:37 +0000)
src/libcollections/str.rs

index b2273646b959e6fc0018ee6536cddecf1bc0a272..f48b8d42ab1065a3eb89074ffcb96b481b51788f 100644 (file)
@@ -923,11 +923,11 @@ fn ends_with<'a, P: Pattern<'a>>(&'a self, pat: P) -> bool
 
     /// Returns a string with all pre- and suffixes that match a pattern repeatedly removed.
     ///
-    /// The pattern can be a simple `&str`, or a closure that determines the split.
+    /// The pattern can be any `DoubleEndedSearcher`, including a closure that determines the split.
     ///
     /// # Examples
     ///
-    /// Simple `&str` patterns:
+    /// Simple `char` patterns:
     ///
     /// ```
     /// assert_eq!("11foo1bar11".trim_matches('1'), "foo1bar");