Skip to content

Commit 78bdda1

Browse files
committed
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.
1 parent 41976e2 commit 78bdda1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libcollections/slice.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,11 @@ impl<T> [T] {
14101410

14111411
/// Converts `self` into a vector without clones or allocation.
14121412
///
1413+
/// The resulting vector can be converted back into a box via
1414+
/// the [`into_boxed_slice`] method.
1415+
///
1416+
/// [`into_boxed_slice`]: vec/struct.Vec.html#method.into_boxed_slice
1417+
///
14131418
/// # Examples
14141419
///
14151420
/// ```

0 commit comments

Comments
 (0)