From 60e66290451644e81323daa7cf03c337a6569c83 Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Sat, 23 Dec 2017 12:36:04 -0500 Subject: [PATCH] fix doctests in libcore --- src/libcore/ptr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 39cf2ec4c21d..5992656ed255 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -1833,7 +1833,7 @@ impl *mut T { /// /// # #[allow(dead_code)] /// unsafe fn from_buf_raw(ptr: *const T, elts: usize) -> Vec { - /// let mut dst = Vec::with_capacity(elts); + /// let mut dst: Vec = Vec::with_capacity(elts); /// dst.set_len(elts); /// dst.as_mut_ptr().copy_from(ptr, elts); /// dst @@ -1872,7 +1872,7 @@ impl *mut T { /// /// # #[allow(dead_code)] /// unsafe fn from_buf_raw(ptr: *const T, elts: usize) -> Vec { - /// let mut dst = Vec::with_capacity(elts); + /// let mut dst: Vec = Vec::with_capacity(elts); /// dst.set_len(elts); /// dst.as_mut_ptr().copy_from_nonoverlapping(ptr, elts); /// dst