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: Christoph Otter <chris@confio.gmbh>
  • Loading branch information
aumetra and chipshort authored Jan 21, 2025
1 parent dd83308 commit a16ca45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/std/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ where
// "The pointer will never be null, so this type is null-pointer-optimized."
assert!(!region_start.is_null(), "Region starts at null pointer");

// SAFETY: Since `from_parts` was required to uphold the invariance that if the parameter is `Owned`
// SAFETY: Since `from_parts` was required to uphold the invariant that if the parameter is `Owned`
// the memory has been allocated through a `Vec`, we can safely reconstruct the `Vec` and deallocate it.
unsafe {
let data =
Expand Down

0 comments on commit a16ca45

Please sign in to comment.