diff options
| author | Kevin Butler <haqkrs@gmail.com> | 2015-03-17 20:23:42 +0000 |
|---|---|---|
| committer | Kevin Butler <haqkrs@gmail.com> | 2015-03-17 20:37:20 +0000 |
| commit | 34c48db8376dba3f5ec68b2d45bd2e9254a77792 (patch) | |
| tree | 4a3ca7dfb97f222b893d2d8ec42198346fccab05 | |
| parent | bfac337daab9b86971bcb3db61382ac44f94621c (diff) | |
| download | rust-34c48db8376dba3f5ec68b2d45bd2e9254a77792.tar.gz rust-34c48db8376dba3f5ec68b2d45bd2e9254a77792.zip | |
Fix documentation for StrExt::trim_matches
| -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 b2273646b95..f48b8d42ab1 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -923,11 +923,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"); |
