Skip to content

Commit

Permalink
Merge pull request #192 from wasmerio/fix-docs-build
Browse files Browse the repository at this point in the history
Fix build of docs.
  • Loading branch information
syrusakbary authored Jul 27, 2020
2 parents 23e1603 + dbdf346 commit c3d9abd
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 c3d9abd

Please sign in to comment.