about summary refs log tree commit diff
path: root/src/libcollections/str.rs
diff options
context:
space:
mode:
authorWithout Boats <woboats@gmail.com>2016-05-14 17:58:48 -0700
committerWithout Boats <woboats@gmail.com>2016-05-14 17:58:48 -0700
commitae1422391c93cd0fe75e6fc94670c96ffae8dc8f (patch)
treef9d3b68235f0ca70f3db60d52f58b95105b06f0e /src/libcollections/str.rs
parent8492b6aa4545e3e86f3b144c9a3834c31c612e38 (diff)
downloadrust-ae1422391c93cd0fe75e6fc94670c96ffae8dc8f.tar.gz
rust-ae1422391c93cd0fe75e6fc94670c96ffae8dc8f.zip
Correct the docs on str::trim_matches
This pattern cannot be a str because str's pattern is not double-ended.
Diffstat (limited to 'src/libcollections/str.rs')
-rw-r--r--src/libcollections/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index 2059943bfdf..7322ad38ff4 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -1617,8 +1617,8 @@ impl str {
     /// Returns a string slice with all prefixes and suffixes that match a
     /// pattern repeatedly removed.
     ///
-    /// The pattern can be a `&str`, [`char`], or a closure that determines
-    /// if a character matches.
+    /// The pattern can be a [`char`] or a closure that determines if a
+    /// character matches.
     ///
     /// [`char`]: primitive.char.html
     ///