Skip to content

Commit

Permalink
Merge pull request #855 from wasmerio/fix/example-in-runtime-readme
Browse files Browse the repository at this point in the history
Fix example in runtime readme
  • Loading branch information
syrusakbary authored Oct 1, 2019
2 parents b74e62a + 0d997c3 commit fed80fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ fn main() -> error::Result<()> {
// We're not importing anything, so make an empty import object.
let import_object = imports! {};

let mut instance = instantiate(WASM, &import_object)?;
let instance = instantiate(WASM, &import_object)?;

let values = instance
.func("add_one")?
.dyn_func("add_one")?
.call(&[Value::I32(42)])?;

assert_eq!(values[0], Value::I32(43));
Expand Down

0 comments on commit fed80fc

Please sign in to comment.