We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0563701 commit 60e6629Copy full SHA for 60e6629
src/libcore/ptr.rs
@@ -1833,7 +1833,7 @@ impl<T: ?Sized> *mut T {
1833
///
1834
/// # #[allow(dead_code)]
1835
/// unsafe fn from_buf_raw<T: Copy>(ptr: *const T, elts: usize) -> Vec<T> {
1836
- /// let mut dst = Vec::with_capacity(elts);
+ /// let mut dst: Vec<T> = Vec::with_capacity(elts);
1837
/// dst.set_len(elts);
1838
/// dst.as_mut_ptr().copy_from(ptr, elts);
1839
/// dst
@@ -1872,7 +1872,7 @@ impl<T: ?Sized> *mut T {
1872
1873
1874
1875
1876
1877
/// dst.as_mut_ptr().copy_from_nonoverlapping(ptr, elts);
1878
0 commit comments