Skip to content

Commit 98988ba

Browse files
committed
Rollup merge of rust-lang#33645 - withoutboats:woboats_trim_matches_doc, r=steveklabnik
Correct the docs on str::trim_matches This pattern cannot be a str because str's pattern is not double-ended.
2 parents f352550 + ae14223 commit 98988ba

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
@@ -1404,8 +1404,8 @@ impl str {
14041404
/// Returns a string slice with all prefixes and suffixes that match a
14051405
/// pattern repeatedly removed.
14061406
///
1407-
/// The pattern can be a `&str`, [`char`], or a closure that determines
1408-
/// if a character matches.
1407+
/// The pattern can be a [`char`] or a closure that determines if a
1408+
/// character matches.
14091409
///
14101410
/// [`char`]: primitive.char.html
14111411
///

0 commit comments

Comments
 (0)