about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-18 14:39:43 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-18 22:21:08 +0530
commite245e65ef8ddb8c047cafcd3d0c30f427a33e6c4 (patch)
treeee1f2be33bceb05958b1f8aaa36e5e4dbe6c56e7
parentc341fe9f8cfb6d1aef6c9fb8ba7531a4c0324eef (diff)
parent34c48db8376dba3f5ec68b2d45bd2e9254a77792 (diff)
downloadrust-e245e65ef8ddb8c047cafcd3d0c30f427a33e6c4.tar.gz
rust-e245e65ef8ddb8c047cafcd3d0c30f427a33e6c4.zip
Rollup merge of #23455 - Ryman:trim_matches_doc, r=steveklabnik
-rw-r--r--src/libcollections/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index 781fc4f2ed0..078d18a310a 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -931,11 +931,11 @@ pub trait StrExt: Index<RangeFull, Output = str> {
 
     /// 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");