We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd83308 commit a16ca45Copy full SHA for a16ca45
packages/std/src/memory.rs
@@ -159,7 +159,7 @@ where
159
// "The pointer will never be null, so this type is null-pointer-optimized."
160
assert!(!region_start.is_null(), "Region starts at null pointer");
161
162
- // 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`
163
// the memory has been allocated through a `Vec`, we can safely reconstruct the `Vec` and deallocate it.
164
unsafe {
165
let data =
0 commit comments