Skip to content

Commit e245e65

Browse files
committed
Rollup merge of #23455 - Ryman:trim_matches_doc, r=steveklabnik
2 parents c341fe9 + 34c48db commit e245e65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,11 @@ pub trait StrExt: Index<RangeFull, Output = str> {
931931

932932
/// Returns a string with all pre- and suffixes that match a pattern repeatedly removed.
933933
///
934-
/// The pattern can be a simple `&str`, or a closure that determines the split.
934+
/// The pattern can be any `DoubleEndedSearcher`, including a closure that determines the split.
935935
///
936936
/// # Examples
937937
///
938-
/// Simple `&str` patterns:
938+
/// Simple `char` patterns:
939939
///
940940
/// ```
941941
/// assert_eq!("11foo1bar11".trim_matches('1'), "foo1bar");

0 commit comments

Comments
 (0)