mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-18 18:53:04 +00:00
Auto merge of #44960 - SeanPrashad:master, r=steveklabnik
Resolves #36284 - vec.rs documentation Removed comments associated with `[into_vec]` being equivalent to `[shrink_to_fit]` as requested.
This commit is contained in:
commit
2146c613d1
@ -507,13 +507,9 @@ impl<T> Vec<T> {
|
||||
|
||||
/// Converts the vector into [`Box<[T]>`][owned slice].
|
||||
///
|
||||
/// Note that this will drop any excess capacity. Calling this and
|
||||
/// converting back to a vector with [`into_vec`] is equivalent to calling
|
||||
/// [`shrink_to_fit`].
|
||||
/// Note that this will drop any excess capacity.
|
||||
///
|
||||
/// [owned slice]: ../../std/boxed/struct.Box.html
|
||||
/// [`into_vec`]: ../../std/primitive.slice.html#method.into_vec
|
||||
/// [`shrink_to_fit`]: #method.shrink_to_fit
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user