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 8cc87a0 commit 332fc2aCopy full SHA for 332fc2a
packages/std/src/memory.rs
@@ -95,7 +95,7 @@ where
95
/// # Safety
96
///
97
/// This function requires the following invariants to be upheld:
98
- /// - `capacity` is smaller or equal to `length`
+ /// - `length` is smaller or equal to `capacity`
99
/// - The number of bytes allocated by the pointer must be equal to `capacity`
100
/// - The byte range covered by `length` must be initialized
101
/// - `ptr` is a non-dangling and non-null pointer
0 commit comments