From dd83308435ec32a032a09fb89577171acedfd95e Mon Sep 17 00:00:00 2001 From: Aumetra Weisman Date: Tue, 21 Jan 2025 15:51:27 +0000 Subject: [PATCH] Update packages/std/src/memory.rs Co-authored-by: Christoph Otter --- packages/std/src/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/std/src/memory.rs b/packages/std/src/memory.rs index 4f67324456..4a12c0a7ce 100644 --- a/packages/std/src/memory.rs +++ b/packages/std/src/memory.rs @@ -95,7 +95,7 @@ where /// # Safety /// /// This function requires the following invariants to be upheld: - /// - `capacity` is smaller or equal to `length` + /// - `length` is smaller or equal to `capacity` /// - The number of bytes allocated by the pointer must be equal to `capacity` /// - The byte range covered by `length` must be initialized /// - `ptr` is a non-dangling and non-null pointer