diff --git a/src/vec-deref.md b/src/vec-deref.md index 1000909e..68d64f7b 100644 --- a/src/vec-deref.md +++ b/src/vec-deref.md @@ -18,7 +18,7 @@ impl Deref for Vec { type Target = [T]; fn deref(&self) -> &[T] { unsafe { - ::std::slice::from_raw_parts(self.ptr.as_ptr(), self.len) + std::slice::from_raw_parts(self.ptr.as_ptr(), self.len) } } } @@ -32,7 +32,7 @@ use std::ops::DerefMut; impl DerefMut for Vec { fn deref_mut(&mut self) -> &mut [T] { unsafe { - ::std::slice::from_raw_parts_mut(self.ptr.as_ptr(), self.len) + std::slice::from_raw_parts_mut(self.ptr.as_ptr(), self.len) } } } diff --git a/src/vec-final.md b/src/vec-final.md index 0c3f042d..9d0a802c 100644 --- a/src/vec-final.md +++ b/src/vec-final.md @@ -186,7 +186,7 @@ impl Deref for Vec { type Target = [T]; fn deref(&self) -> &[T] { unsafe { - ::std::slice::from_raw_parts(self.ptr(), self.len) + std::slice::from_raw_parts(self.ptr(), self.len) } } } @@ -194,7 +194,7 @@ impl Deref for Vec { impl DerefMut for Vec { fn deref_mut(&mut self) -> &mut [T] { unsafe { - ::std::slice::from_raw_parts_mut(self.ptr(), self.len) + std::slice::from_raw_parts_mut(self.ptr(), self.len) } } }