Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix documentation for StrExt::trim_matches
  • Loading branch information
Ryman committed Mar 17, 2015
1 parent bfac337 commit 34c48db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/str.rs
Expand Up @@ -923,11 +923,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 34c48db

Please sign in to comment.