mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +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].
|
/// Converts the vector into [`Box<[T]>`][owned slice].
|
||||||
///
|
///
|
||||||
/// Note that this will drop any excess capacity. Calling this and
|
/// Note that this will drop any excess capacity.
|
||||||
/// converting back to a vector with [`into_vec`] is equivalent to calling
|
|
||||||
/// [`shrink_to_fit`].
|
|
||||||
///
|
///
|
||||||
/// [owned slice]: ../../std/boxed/struct.Box.html
|
/// [owned slice]: ../../std/boxed/struct.Box.html
|
||||||
/// [`into_vec`]: ../../std/primitive.slice.html#method.into_vec
|
|
||||||
/// [`shrink_to_fit`]: #method.shrink_to_fit
|
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user