We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfac337 commit 34c48dbCopy full SHA for 34c48db
src/libcollections/str.rs
@@ -923,11 +923,11 @@ pub trait StrExt: Index<RangeFull, Output = str> {
923
924
/// Returns a string with all pre- and suffixes that match a pattern repeatedly removed.
925
///
926
- /// 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.
927
928
/// # Examples
929
930
- /// Simple `&str` patterns:
+ /// Simple `char` patterns:
931
932
/// ```
933
/// assert_eq!("11foo1bar11".trim_matches('1'), "foo1bar");
0 commit comments