From 3c77d496a3e13eeb33e1f156f1437d682f2fde60 Mon Sep 17 00:00:00 2001 From: "Join.G" Date: Fri, 23 Aug 2024 20:36:06 +0800 Subject: [PATCH] fix lint issue --- crates/javy/src/alloc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/javy/src/alloc.rs b/crates/javy/src/alloc.rs index 706e8b13..cc0a5745 100644 --- a/crates/javy/src/alloc.rs +++ b/crates/javy/src/alloc.rs @@ -18,8 +18,8 @@ const ZERO_SIZE_ALLOCATION_PTR: *mut u8 = 1 as _; /// /// 1. Allocate memory of new_size with alignment. /// 2. If original_ptr != 0. -/// a. copy min(new_size, original_size) bytes from original_ptr to new memory. -/// b. de-allocate original_ptr. +/// a. copy min(new_size, original_size) bytes from original_ptr to new memory. +/// b. de-allocate original_ptr. /// 3. Return new memory ptr. /// /// # Safety