]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #44960 - SeanPrashad:master, r=steveklabnik
authorbors <bors@rust-lang.org>
Mon, 2 Oct 2017 02:17:14 +0000 (02:17 +0000)
committerbors <bors@rust-lang.org>
Mon, 2 Oct 2017 02:17:14 +0000 (02:17 +0000)
Resolves #36284 - vec.rs documentation

Removed comments associated with `[into_vec]` being equivalent to `[shrink_to_fit]` as requested.

src/liballoc/vec.rs

index 725d3e15f4a614c52250f20a0cd06cb6e8bdf4af..861291194f3693a41794a710c1d7e96804f0e2d3 100644 (file)
@@ -507,13 +507,9 @@ pub fn shrink_to_fit(&mut self) {
 
     /// 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
     ///