]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/alloc.rs
Rollup merge of #68381 - mjp41:master, r=Dylan-DPC
[rust.git] / src / libcore / alloc.rs
index 4354e1c7b5f695c1455f5e24f4bb7d165d5758b4..09f743fb81e4c53885434e20536640904ad3902d 100644 (file)
@@ -525,7 +525,8 @@ unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
     /// The memory may or may not have been deallocated,
     /// and should be considered unusable (unless of course it was
     /// transferred back to the caller again via the return value of
-    /// this method).
+    /// this method). The new memory block is allocated with `layout`, but
+    /// with the `size` updated to `new_size`.
     ///
     /// If this method returns null, then ownership of the memory
     /// block has not been transferred to this allocator, and the