File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1833,7 +1833,7 @@ impl<T: ?Sized> *mut T {
18331833 ///
18341834 /// # #[allow(dead_code)]
18351835 /// unsafe fn from_buf_raw<T: Copy>(ptr: *const T, elts: usize) -> Vec<T> {
1836- /// let mut dst = Vec::with_capacity(elts);
1836+ /// let mut dst: Vec<T> = Vec::with_capacity(elts);
18371837 /// dst.set_len(elts);
18381838 /// dst.as_mut_ptr().copy_from(ptr, elts);
18391839 /// dst
@@ -1872,7 +1872,7 @@ impl<T: ?Sized> *mut T {
18721872 ///
18731873 /// # #[allow(dead_code)]
18741874 /// unsafe fn from_buf_raw<T: Copy>(ptr: *const T, elts: usize) -> Vec<T> {
1875- /// let mut dst = Vec::with_capacity(elts);
1875+ /// let mut dst: Vec<T> = Vec::with_capacity(elts);
18761876 /// dst.set_len(elts);
18771877 /// dst.as_mut_ptr().copy_from_nonoverlapping(ptr, elts);
18781878 /// dst
You can’t perform that action at this time.
0 commit comments