Skip to content

Commit 6e57e64

Browse files
Merge pull request #236 from ehuss/fix-layout-grow
Fix API change to alloc::Global::grow.
2 parents 2585475 + ee45186 commit 6e57e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vec-final.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<T> RawVec<T> {
4747
let c: NonNull<T> = self.ptr.into();
4848
let ptr = Global.grow(c.cast(),
4949
Layout::array::<T>(self.cap).unwrap(),
50-
Layout::array::<T>(new_cap).unwrap().size());
50+
Layout::array::<T>(new_cap).unwrap());
5151
(new_cap, ptr)
5252
};
5353

0 commit comments

Comments
 (0)