diff --git a/src/vec-final.md b/src/vec-final.md index fd6c592..a534bcf 100644 --- a/src/vec-final.md +++ b/src/vec-final.md @@ -49,7 +49,7 @@ impl RawVec { Err(err) => Heap.oom(err), }; - self.ptr = Unique::new(ptr as *mut _); + self.ptr = Unique::new_unchecked(ptr as *mut _); self.cap = new_cap; } }