Skip to content

Commit

Permalink
Fix build of docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewycky committed Jul 27, 2020
1 parent 23e1603 commit dbdf346
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/api/src/externals/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Memory, MemoryError> {
let tunables = store.tunables();
let style = tunables.memory_style(&ty);
Expand Down
2 changes: 2 additions & 0 deletions lib/api/src/externals/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Table, RuntimeError> {
let item = init.into_checked_anyfunc(store)?;
let tunables = store.tunables();
Expand Down
5 changes: 2 additions & 3 deletions lib/vm/src/vmoffsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit dbdf346

Please sign in to comment.