diff --git a/vec-dealloc.md b/vec-dealloc.md index b767caa..706fe68 100644 --- a/vec-dealloc.md +++ b/vec-dealloc.md @@ -21,7 +21,7 @@ impl Drop for Vec { let elem_size = mem::size_of::(); let num_bytes = elem_size * self.cap; unsafe { - heap::deallocate(*self.ptr, num_bytes, align); + heap::deallocate(*self.ptr as *mut _, num_bytes, align); } } }