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 {
1833
1833
///
1834
1834
/// # #[allow(dead_code)]
1835
1835
/// 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);
1837
1837
/// dst.set_len(elts);
1838
1838
/// dst.as_mut_ptr().copy_from(ptr, elts);
1839
1839
/// dst
@@ -1872,7 +1872,7 @@ impl<T: ?Sized> *mut T {
1872
1872
///
1873
1873
/// # #[allow(dead_code)]
1874
1874
/// 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);
1876
1876
/// dst.set_len(elts);
1877
1877
/// dst.as_mut_ptr().copy_from_nonoverlapping(ptr, elts);
1878
1878
/// dst
You can’t perform that action at this time.
0 commit comments