diff --git a/src/vec-final.md b/src/vec-final.md index 8c86641..eb749a4 100644 --- a/src/vec-final.md +++ b/src/vec-final.md @@ -47,7 +47,7 @@ impl RawVec { let c: NonNull = self.ptr.into(); let ptr = Global.grow(c.cast(), Layout::array::(self.cap).unwrap(), - Layout::array::(new_cap).unwrap().size()); + Layout::array::(new_cap).unwrap()); (new_cap, ptr) };