Skip to content

Commit

Permalink
Improved api code example
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed May 5, 2020
1 parent 3377344 commit a945b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() -> anyhow::Result<()> {
"#;

let module = Module::new(&module_wat);
// We're not importing anything, so make an empty import object.
// The module doesn't import anything, so we create an empty import object.
let import_object = imports! {};
let instance = Instance::new(module, &import_object)?;

Expand Down

0 comments on commit a945b43

Please sign in to comment.