Rename as_ptr_mut to as_mut_ptr

This commit is contained in:
Ruihan Li
2024-11-20 20:40:56 +08:00
committed by Tate, Hongliang Tian
parent b6944e48bd
commit f1aae23234
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ impl<T: 'static> CpuLocalCell<T> {
/// data should be done with interrupts disabled. Otherwise, more care
/// must be taken to ensure that the borrowing rules are correctly
/// enforced, since the interrupts may come asynchronously.
pub fn as_ptr_mut(&'static self) -> *mut T {
pub fn as_mut_ptr(&'static self) -> *mut T {
super::has_init::assert_true();
let offset = {