Skip to content

Commit

Permalink
Add notice about ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Jan 28, 2025
1 parent 2022ca3 commit 1e27541
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 @@ -96,7 +96,7 @@ where
///
/// This function requires the following invariants to be upheld:
/// - `length` is smaller or equal to `capacity`
/// - The number of bytes allocated by the pointer must be equal to `capacity`
/// - The number of bytes allocated by the pointer must be equal to `capacity` (if the `Ownership` is `Owned`)
/// - The byte range covered by `length` must be initialized
/// - `ptr` is a non-null pointer
/// - If the generic `Ownership` parameter is set to `Owned`, the `ptr` must point to a memory region allocated by a `Vec`
Expand Down

0 comments on commit 1e27541

Please sign in to comment.