Skip to content

Commit

Permalink
Add note about pointer state after the call.
Browse files Browse the repository at this point in the history
Fixes #23422
  • Loading branch information
steveklabnik committed Mar 23, 2015
1 parent 0834bd1 commit 2750e3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/liballoc/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ pub unsafe fn allocate(size: usize, align: usize) -> *mut u8 {
///
/// On failure, return a null pointer and leave the original allocation intact.
///
/// If the allocation was relocated, the memory at the passed-in pointer is
/// undefined after the call.
///
/// Behavior is undefined if the requested size is 0 or the alignment is not a
/// power of 2. The alignment must be no larger than the largest supported page
/// size on the platform.
Expand Down

0 comments on commit 2750e3c

Please sign in to comment.