diff --git a/nac3core/src/codegen/numpy_new/util.rs b/nac3core/src/codegen/numpy_new/util.rs index 3b5f3b31..6351614f 100644 --- a/nac3core/src/codegen/numpy_new/util.rs +++ b/nac3core/src/codegen/numpy_new/util.rs @@ -17,18 +17,16 @@ use crate::{ typecheck::typedef::{Type, TypeEnum}, }; -/** - Allocate an ndarray on the stack given its `ndims`. - - `shape` and `strides` will be automatically allocated on the stack. - - The returned ndarray's content will be: - - `data`: `nullptr` - - `itemsize`: **uninitialized** value - - `ndims`: initialized value, set to the input `ndims` - - `shape`: initialized pointer to an allocated stack with **uninitialized** values - - `strides`: initialized pointer to an allocated stack with **uninitialized** values -*/ +/// Allocate an ndarray on the stack given its `ndims`. +/// +/// `shape` and `strides` will be automatically allocated on the stack. +/// +/// The returned ndarray's content will be: +/// - `data`: `nullptr` +/// - `itemsize`: **uninitialized** value +/// - `ndims`: initialized value, set to the input `ndims` +/// - `shape`: initialized pointer to an allocated stack with **uninitialized** values +/// - `strides`: initialized pointer to an allocated stack with **uninitialized** values pub fn alloca_ndarray<'ctx, G>( generator: &mut G, ctx: &mut CodeGenContext<'ctx, '_>,