forked from M-Labs/nac3
1
0
Fork 0

core: Rename unsafe functions to unchecked

This is this intended name of the functions.
This commit is contained in:
David Mak 2024-03-08 16:17:13 +08:00
parent 9d550725b7
commit 84a888758a
1 changed files with 2 additions and 2 deletions

View File

@ -980,7 +980,7 @@ impl<'ctx> NDArrayDataProxy<'ctx> {
/// # Safety
///
/// This function should be called with valid indices.
pub unsafe fn get_unsafe_const(
pub unsafe fn get_unchecked_const(
&self,
ctx: &mut CodeGenContext<'ctx, '_>,
generator: &mut dyn CodeGenerator,
@ -994,7 +994,7 @@ impl<'ctx> NDArrayDataProxy<'ctx> {
/// # Safety
///
/// This function should be called with valid indices.
pub unsafe fn get_unsafe(
pub unsafe fn get_unchecked(
&self,
ctx: &mut CodeGenContext<'ctx, '_>,
generator: &dyn CodeGenerator,