diff options
| author | Colin Wallace <wallacoloo@gmail.com> | 2017-05-22 05:23:47 -0700 |
|---|---|---|
| committer | Colin Wallace <wallacoloo@gmail.com> | 2017-05-22 05:23:47 -0700 |
| commit | 78bdda1573878676c8ec4c3d6957d3adabda0c56 (patch) | |
| tree | 47acfbc3e0f4442eca99a5740b776b146e33390e | |
| parent | 41976e25f1c9f2cf40cdd24691dc1f162a2860a2 (diff) | |
| download | rust-78bdda1573878676c8ec4c3d6957d3adabda0c56.tar.gz rust-78bdda1573878676c8ec4c3d6957d3adabda0c56.zip | |
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.
| -rw-r--r-- | src/libcollections/slice.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index 3efda1faa3b..3012dcf0e39 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -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 /// /// ``` |
