core: more minor doc refine for helper_call_numpy()

This commit is contained in:
lyken 2024-06-19 16:08:09 +08:00
parent c20c9a2c5a
commit ef2502e7b4

View File

@ -1044,7 +1044,8 @@ pub fn call_numpy_maximum<'ctx, G: CodeGenerator + ?Sized>(
})
}
/// Helper function to create a builtin that takes in either an ndarray or a value and returns a value of the structure.
/// Helper function to create a builtin that takes in either an ndarray or a value and returns a value of the same structure.
/// (e.g, `float` to `float`, `float` to `int`, `ndarray<float>` to `ndarray<float>`, or even `ndarray<float>` to `ndarray<int>`).
///
/// * `(arg_ty, arg_val)`: The [`Type`] and llvm value of the input argument.
/// * `fn_name`: The name of the function, only used when throwing an error with [`unsupported_type`]