diff options
| author | bors <bors@rust-lang.org> | 2019-11-17 04:37:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-17 04:37:53 +0000 |
| commit | 8831d766ace89bc74714918a7d9fbd3ca5ec946a (patch) | |
| tree | 8bb989254c3f983a3212f28875f2536a8ccae745 /src/liballoc | |
| parent | 2cdc289cb8b2f64440ee1a2108427049a56ad48f (diff) | |
| parent | f65cb87a09530ad8ab7b8dc0fb35519c17f29d4b (diff) | |
| download | rust-8831d766ace89bc74714918a7d9fbd3ca5ec946a.tar.gz rust-8831d766ace89bc74714918a7d9fbd3ca5ec946a.zip | |
Auto merge of #66485 - JohnTitor:rollup-vbwhg6r, r=JohnTitor
Rollup of 11 pull requests Successful merges: - #65739 (Improve documentation of `Vec::split_off(...)`) - #66271 (syntax: Keep string literals in ABIs and `asm!` more precisely) - #66344 (rustc_plugin: Remove `Registry::register_attribute`) - #66381 (find_deprecation: deprecation attr may be ill-formed meta.) - #66395 (Centralize panic macro documentation) - #66456 (Move `DIAGNOSTICS` usage to `rustc_driver`) - #66465 (add missing 'static lifetime in docs) - #66466 (miri panic_unwind: fix hack for SEH platforms) - #66469 (Use "field is never read" instead of "field is never used") - #66471 (Add test for issue 63116) - #66477 (Clarify transmute_copy documentation example) Failed merges: r? @ghost
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 4363314dc45..07e4358d644 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1333,10 +1333,9 @@ impl<T> Vec<T> { /// Splits the collection into two at the given index. /// - /// Returns a newly allocated `Self`. `self` contains elements `[0, at)`, - /// and the returned `Self` contains elements `[at, len)`. - /// - /// Note that the capacity of `self` does not change. + /// Returns a newly allocated vector containing the elements in the range + /// `[at, len)`. After the call, the original vector will be left containing + /// the elements `[0, at)` with its previous capacity unchanged. /// /// # Panics /// |
