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:
parent
41976e25f1
commit
78bdda1573
1 changed files with 5 additions and 0 deletions
|
|
@ -1410,6 +1410,11 @@ impl<T> [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
|
||||
///
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue