From e8a991048f58653e805b47db4b16554ed0df2b25 Mon Sep 17 00:00:00 2001 From: LeslieKid <3530611790@qq.com> Date: Fri, 12 Apr 2024 06:27:38 +0800 Subject: [PATCH] Fix typos in comments --- framework/aster-frame/src/vm/offset.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/aster-frame/src/vm/offset.rs b/framework/aster-frame/src/vm/offset.rs index 566d4238d..df3d4ed30 100644 --- a/framework/aster-frame/src/vm/offset.rs +++ b/framework/aster-frame/src/vm/offset.rs @@ -17,8 +17,8 @@ macro_rules! offset_of { ($container:ty, $($field:tt)+) => ({ // SAFETY. It is ok to have this uninitialized value because // 1) Its memory won't be acccessed; - // 2) It will be forgoten rather than being dropped; - // 3) Before it gets forgten, the code won't return prematurely or panic. + // 2) It will be forgotten rather than being dropped; + // 3) Before it gets forgotten, the code won't return prematurely or panic. let tmp: $container = unsafe { core::mem::MaybeUninit::uninit().assume_init() }; let container_addr = &tmp as *const _;