Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 4238c92

Browse files
fix: doc tests
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 58fe7ce commit 4238c92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/tinywasm/src/imports.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl From<&Import> for ExternName {
192192
/// # use log;
193193
/// # fn main() -> tinywasm::Result<()> {
194194
/// use tinywasm::{Imports, Extern};
195-
/// use tinywasm::types::{ValType, TableType, MemoryType, WasmValue};
195+
/// use tinywasm::types::{ValType, TableType, MemoryType, MemoryArch, WasmValue};
196196
/// let mut imports = Imports::new();
197197
///
198198
/// // function args can be either a single
@@ -208,7 +208,7 @@ impl From<&Import> for ExternName {
208208
/// imports
209209
/// .define("my_module", "print_i32", print_i32)?
210210
/// .define("my_module", "table", Extern::table(table_type, table_init))?
211-
/// .define("my_module", "memory", Extern::memory(MemoryType::new_32(1, Some(2), None)))?
211+
/// .define("my_module", "memory", Extern::memory(MemoryType::new(MemoryArch::I32, 1, Some(2), None)))?
212212
/// .define("my_module", "global_i32", Extern::global(WasmValue::I32(666), false))?
213213
/// .link_module("my_other_module", 0)?;
214214
/// # Ok(())

0 commit comments

Comments
 (0)