From ee45186b3739b5932408c816f24cd166da9bcb33 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 31 Aug 2020 09:14:24 -0700 Subject: [PATCH] Fix API change to alloc::Global::grow. --- src/vec-final.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) };