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.
2 parents c341fe9 + 34c48db commit e245e65Copy full SHA for e245e65
src/libcollections/str.rs
@@ -931,11 +931,11 @@ pub trait StrExt: Index<RangeFull, Output = str> {
931
932
/// Returns a string with all pre- and suffixes that match a pattern repeatedly removed.
933
///
934
- /// 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.
935
936
/// # Examples
937
938
- /// Simple `&str` patterns:
+ /// Simple `char` patterns:
939
940
/// ```
941
/// assert_eq!("11foo1bar11".trim_matches('1'), "foo1bar");
0 commit comments