From 34c48db8376dba3f5ec68b2d45bd2e9254a77792 Mon Sep 17 00:00:00 2001 From: Kevin Butler Date: Tue, 17 Mar 2015 20:23:42 +0000 Subject: [PATCH] Fix documentation for StrExt::trim_matches --- 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 b2273646b959e..f48b8d42ab106 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -923,11 +923,11 @@ pub trait StrExt: Index { /// 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");