diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-18 14:39:43 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-18 22:21:08 +0530 |
| commit | e245e65ef8ddb8c047cafcd3d0c30f427a33e6c4 (patch) | |
| tree | ee1f2be33bceb05958b1f8aaa36e5e4dbe6c56e7 | |
| parent | c341fe9f8cfb6d1aef6c9fb8ba7531a4c0324eef (diff) | |
| parent | 34c48db8376dba3f5ec68b2d45bd2e9254a77792 (diff) | |
| download | rust-e245e65ef8ddb8c047cafcd3d0c30f427a33e6c4.tar.gz rust-e245e65ef8ddb8c047cafcd3d0c30f427a33e6c4.zip | |
Rollup merge of #23455 - Ryman:trim_matches_doc, r=steveklabnik
| -rw-r--r-- | src/libcollections/str.rs | 4 |
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"); |
