We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b74e62a + 0d997c3 commit fed80fcCopy full SHA for fed80fc
lib/runtime/README.md
@@ -80,10 +80,10 @@ fn main() -> error::Result<()> {
80
// We're not importing anything, so make an empty import object.
81
let import_object = imports! {};
82
83
- let mut instance = instantiate(WASM, &import_object)?;
+ let instance = instantiate(WASM, &import_object)?;
84
85
let values = instance
86
- .func("add_one")?
+ .dyn_func("add_one")?
87
.call(&[Value::I32(42)])?;
88
89
assert_eq!(values[0], Value::I32(43));
0 commit comments