Skip to content

Commit

Permalink
Update packages/std/src/memory.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
  • Loading branch information
aumetra and webmaster128 committed Mar 21, 2024
1 parent c688732 commit 666e709
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/std/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ pub unsafe fn consume_region(ptr: *mut Region) -> Vec<u8> {
///
/// This is important to uphold the safety invariant of the `dealloc` method, which requires us to pass the same Layout
/// into it as was used to allocate a memory region.
///
/// And since `size` is one of the parameters, it is important to pass in the exact same capacity.
///
/// See: <https://doc.rust-lang.org/stable/alloc/alloc/trait.GlobalAlloc.html#safety-2>
Expand Down

0 comments on commit 666e709

Please sign in to comment.