Skip to content

Commit 332fc2a

Browse files
aumetrachipshort
andcommitted
Update packages/std/src/memory.rs
Co-authored-by: Christoph Otter <[email protected]>
1 parent 8cc87a0 commit 332fc2a

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
@@ -95,7 +95,7 @@ where
9595
/// # Safety
9696
///
9797
/// This function requires the following invariants to be upheld:
98-
/// - `capacity` is smaller or equal to `length`
98+
/// - `length` is smaller or equal to `capacity`
9999
/// - The number of bytes allocated by the pointer must be equal to `capacity`
100100
/// - The byte range covered by `length` must be initialized
101101
/// - `ptr` is a non-dangling and non-null pointer

0 commit comments

Comments
 (0)