Correct a small syntax error

This commit is contained in:
Cautreoxit 2024-11-06 20:24:46 +08:00 committed by Tate, Hongliang Tian
parent bebfc360da
commit fda05e9e23

View File

@ -59,9 +59,9 @@ impl<M: PageMeta> Page<M> {
let vaddr = mapping::page_to_meta::<PagingConsts>(paddr);
let ptr = vaddr as *const MetaSlot;
// SAFETY: The aligned pointer points to a initialized `MetaSlot`.
// SAFETY: The aligned pointer points to an initialized `MetaSlot`.
let usage = unsafe { &(*ptr).usage };
// SAFETY: The aligned pointer points to a initialized `MetaSlot`.
// SAFETY: The aligned pointer points to an initialized `MetaSlot`.
let ref_count = unsafe { &(*ptr).ref_count };
usage