Mention Vec::into_boxed_slice in docs for [T]::into_vec.

`Vec::into_boxed_slice` and `[T]::into_vec` are inverses, so it makes sense
to mention the other in their respective documentation for visibility.
`Vec::into_boxed_slice` already mentions `[T]::into_vec`, but not the other
way around until now.
This commit is contained in:
Colin Wallace 2017-05-22 05:23:47 -07:00
parent 41976e25f1
commit 78bdda1573

View File

@ -1410,6 +1410,11 @@ pub fn to_vec(&self) -> Vec<T>
/// Converts `self` into a vector without clones or allocation.
///
/// The resulting vector can be converted back into a box via
/// the [`into_boxed_slice`] method.
///
/// [`into_boxed_slice`]: vec/struct.Vec.html#method.into_boxed_slice
///
/// # Examples
///
/// ```