We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 900811e commit 6be3446Copy full SHA for 6be3446
src/libcore/alloc.rs
@@ -525,7 +525,8 @@ pub unsafe trait GlobalAlloc {
525
/// The memory may or may not have been deallocated,
526
/// and should be considered unusable (unless of course it was
527
/// transferred back to the caller again via the return value of
528
- /// this method).
+ /// this method). The new memory block is allocated with `layout`, but
529
+ /// with the `size` updated to `new_size`.
530
///
531
/// If this method returns null, then ownership of the memory
532
/// block has not been transferred to this allocator, and the
0 commit comments