diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-04 04:48:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-04 04:48:16 +0200 |
| commit | 1ae4727f3f41dd8e1c18e4e3a43ba2f1a23145a6 (patch) | |
| tree | cefa11844621b8370b669cb66c83ba2844e18a88 /src/liballoc | |
| parent | 5d1d2992ef79579ba9a3aa59c7dd8c05d3e3a335 (diff) | |
| parent | 7bdc38d3a49d57fd56d2e69c8412f688b715f8ab (diff) | |
| download | rust-1ae4727f3f41dd8e1c18e4e3a43ba2f1a23145a6.tar.gz rust-1ae4727f3f41dd8e1c18e4e3a43ba2f1a23145a6.zip | |
Rollup merge of #61420 - felixrabe:patch-2, r=dtolnay
Succinctify splice docs
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 5cb91395b7b..92fe0834dd0 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -2018,16 +2018,14 @@ impl<T> Vec<T> { /// with the given `replace_with` iterator and yields the removed items. /// `replace_with` does not need to be the same length as `range`. /// - /// Note 1: The element range is removed even if the iterator is not - /// consumed until the end. + /// The element range is removed even if the iterator is not consumed until the end. /// - /// Note 2: It is unspecified how many elements are removed from the vector, + /// It is unspecified how many elements are removed from the vector /// if the `Splice` value is leaked. /// - /// Note 3: The input iterator `replace_with` is only consumed - /// when the `Splice` value is dropped. + /// The input iterator `replace_with` is only consumed when the `Splice` value is dropped. /// - /// Note 4: This is optimal if: + /// This is optimal if: /// /// * The tail (elements in the vector after `range`) is empty, /// * or `replace_with` yields fewer elements than `range`’s length |
