Skip to content

Commit 2146c61

Browse files
committed
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.
2 parents a4af930 + 1ebc7bb commit 2146c61

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/liballoc/vec.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -507,13 +507,9 @@ impl<T> Vec<T> {
507507

508508
/// Converts the vector into [`Box<[T]>`][owned slice].
509509
///
510-
/// Note that this will drop any excess capacity. Calling this and
511-
/// converting back to a vector with [`into_vec`] is equivalent to calling
512-
/// [`shrink_to_fit`].
510+
/// Note that this will drop any excess capacity.
513511
///
514512
/// [owned slice]: ../../std/boxed/struct.Box.html
515-
/// [`into_vec`]: ../../std/primitive.slice.html#method.into_vec
516-
/// [`shrink_to_fit`]: #method.shrink_to_fit
517513
///
518514
/// # Examples
519515
///

0 commit comments

Comments
 (0)