Skip to content

Commit a16ca45

Browse files
aumetrachipshort
andauthored
Update packages/std/src/memory.rs
Co-authored-by: Christoph Otter <[email protected]>
1 parent dd83308 commit a16ca45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/std/src/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ where
159159
// "The pointer will never be null, so this type is null-pointer-optimized."
160160
assert!(!region_start.is_null(), "Region starts at null pointer");
161161

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

0 commit comments

Comments
 (0)