feat: update examples

This commit is contained in:
2023-01-18 23:57:29 +08:00
parent d514f80f64
commit 3eefa3cba1
3 changed files with 54 additions and 28 deletions

View File

@@ -28,7 +28,7 @@ fn main() -> Result<()> {
// this case we're using `4` for.
let mut store = Store::new(&engine, 4);
let instance = linker.instantiate(&mut store, &module)?;
let hello = instance.get_typed_func::<(), (), _>(&mut store, "hello")?;
let hello = instance.get_typed_func::<(), ()>(&mut store, "hello")?;
// And finally we can call the wasm!
hello.call(&mut store, ())?;