diff --git a/lib/api/src/externals/memory.rs b/lib/api/src/externals/memory.rs index e96bc5a59ce..d8035621e18 100644 --- a/lib/api/src/externals/memory.rs +++ b/lib/api/src/externals/memory.rs @@ -31,6 +31,8 @@ impl Memory { /// Creates a new host `Memory` from the provided [`MemoryType`]. /// /// This function will construct the `Memory` using the store [`Tunables`]. + /// + /// [`Tunables`]: crate::tunables::Tunables pub fn new(store: &Store, ty: MemoryType) -> Result { let tunables = store.tunables(); let style = tunables.memory_style(&ty); diff --git a/lib/api/src/externals/table.rs b/lib/api/src/externals/table.rs index bd84a009bce..3e5dd028dd7 100644 --- a/lib/api/src/externals/table.rs +++ b/lib/api/src/externals/table.rs @@ -36,6 +36,8 @@ impl Table { /// All the elements in the table will be set to the `init` value. /// /// This function will construct the `Table` using the store [`Tunables`]. + /// + /// [`Tunables`]: crate::tunables::Tunables pub fn new(store: &Store, ty: TableType, init: Val) -> Result { let item = init.into_checked_anyfunc(store)?; let tunables = store.tunables(); diff --git a/lib/vm/src/vmoffsets.rs b/lib/vm/src/vmoffsets.rs index f3fa55f1207..7a936e71d1f 100644 --- a/lib/vm/src/vmoffsets.rs +++ b/lib/vm/src/vmoffsets.rs @@ -285,6 +285,7 @@ impl VMOffsets { /// /// The underlying global itself is the size of the largest value type (i.e. a V128), /// however the size of this type is just the size of a pointer. + /// /// [`VMGlobalDefinition`]: crate::vmcontext::VMGlobalDefinition pub const fn size_of_vmglobal_local(&self) -> u8 { self.pointer_size @@ -652,9 +653,7 @@ impl VMOffsets { .unwrap() } - /// Return the offset to builtin function in [`VMBuiltinFunctionsArray`] index `index`. - /// - /// [`VMBuiltinFunctionsArray`]: crate::vmcontext::VMBuiltinFunctionsArray + /// Return the offset to builtin function in `VMBuiltinFunctionsArray` index `index`. pub fn vmctx_builtin_function(&self, index: VMBuiltinFunctionIndex) -> u32 { self.vmctx_builtin_functions_begin() .checked_add(