diff options
Diffstat (limited to 'examples/simple2.rs')
| -rw-r--r-- | examples/simple2.rs | 2 |
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(()) |
