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>
(cherry picked from commit 666e709)
  • Loading branch information
aumetra authored and mergify[bot] committed Mar 21, 2024
1 parent 2b26879 commit 26d23c2
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 26d23c2

Please sign in to comment.