Skip to content

Commit 951eb55

Browse files
authored
Rollup merge of #42151 - Wallacoloo:docfix_into_vec, r=frewsxcv
Mention Vec::into_boxed_slice in documentation of [T]::into_vec This is a documentation fix. `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. Tagging @steveklabnik per his request.
2 parents b2c7423 + 6e8e5c9 commit 951eb55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcollections/slice.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,9 @@ 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+
/// `Vec<T>`'s `into_boxed_slice` method.
1415+
///
14131416
/// # Examples
14141417
///
14151418
/// ```

0 commit comments

Comments
 (0)