Skip to content

Commit ae14223

Browse files
committed
Correct the docs on str::trim_matches
This pattern cannot be a str because str's pattern is not double-ended.
1 parent 8492b6a commit ae14223

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
@@ -1617,8 +1617,8 @@ impl str {
16171617
/// Returns a string slice with all prefixes and suffixes that match a
16181618
/// pattern repeatedly removed.
16191619
///
1620-
/// The pattern can be a `&str`, [`char`], or a closure that determines
1621-
/// if a character matches.
1620+
/// The pattern can be a [`char`] or a closure that determines if a
1621+
/// character matches.
16221622
///
16231623
/// [`char`]: primitive.char.html
16241624
///

0 commit comments

Comments
 (0)