diff options
| author | kennytm <kennytm@gmail.com> | 2018-08-24 16:44:38 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-08-24 19:24:32 +0800 |
| commit | c51903c73e1b1385ea124d3349fa0baa326bcbdd (patch) | |
| tree | 3a51a44cf3de95cebc99ee5fee228a7fa9ceca6d /src/liballoc/string.rs | |
| parent | d13c61208a978cb0dc8b81a64cf56364fa676ddb (diff) | |
| parent | 11f3918ca2c7913f7976a42539646dc28e86ffcf (diff) | |
| download | rust-c51903c73e1b1385ea124d3349fa0baa326bcbdd.tar.gz rust-c51903c73e1b1385ea124d3349fa0baa326bcbdd.zip | |
Rollup merge of #53592 - matthiaskrgr:str_doc, r=alexcrichton
docs: minor stylistic changes to str/string docs std::string::String.repeat(): slightly rephrase to be more in-line with other descriptions. add ticks around a few keywords in other descriptions.
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index eabda7123de..aa821abb34c 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -752,7 +752,7 @@ impl String { self.vec } - /// Extracts a string slice containing the entire string. + /// Extracts a string slice containing the entire `String`. /// /// # Examples /// @@ -1454,8 +1454,8 @@ impl String { self.vec.clear() } - /// Creates a draining iterator that removes the specified range in the string - /// and yields the removed chars. + /// Creates a draining iterator that removes the specified range in the `String` + /// and yields the removed `chars`. /// /// Note: The element range is removed even if the iterator is not /// consumed until the end. |
