diff options
| author | Without Boats <woboats@gmail.com> | 2016-05-14 17:58:48 -0700 |
|---|---|---|
| committer | Without Boats <woboats@gmail.com> | 2016-05-14 17:58:48 -0700 |
| commit | ae1422391c93cd0fe75e6fc94670c96ffae8dc8f (patch) | |
| tree | f9d3b68235f0ca70f3db60d52f58b95105b06f0e /src/libcollections/str.rs | |
| parent | 8492b6aa4545e3e86f3b144c9a3834c31c612e38 (diff) | |
| download | rust-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.rs | 4 |
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 /// |
