summaryrefslogtreecommitdiff
path: root/examples/simple2.rs
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-04-12 13:34:31 +0200
committerHenry <mail@henrygressmann.de>2026-04-12 13:34:31 +0200
commitdcd8b152466ab023762e4b9b6fc50c99da0cae50 (patch)
tree391486a6a7edc56eb2a9135f295c270634ad3247 /examples/simple2.rs
parent87499c635504e808960e0c6ffffe2b43ca4d6206 (diff)
feat: rework public api, add missing export apis
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples/simple2.rs')
-rw-r--r--examples/simple2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple2.rs b/examples/simple2.rs
index a3124f8..66e85b3 100644
--- a/examples/simple2.rs
+++ b/examples/simple2.rs
@@ -14,7 +14,7 @@ fn main() -> Result<()> {
let module = Module::parse_bytes(&wasm)?;
let mut store = Store::default();
let instance = module.instantiate(&mut store, None)?;
- let add = instance.exported_func::<(i32, i64), (i32, i64)>(&store, "return")?;
+ let add = instance.func_typed::<(i32, i64), (i32, i64)>(&store, "return")?;
assert_eq!(add.call(&mut store, (1, 2))?, (1, 2));
Ok(())