Skip to content

Commit

Permalink
Rollup merge of rust-lang#23455 - Ryman:trim_matches_doc, r=steveklabnik
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 18, 2015
2 parents c341fe9 + 34c48db commit e245e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,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");
Expand Down

0 comments on commit e245e65

Please sign in to comment.