Improved api code example

This commit is contained in:
Syrus
2020-05-05 14:57:22 -07:00
parent 33773447e0
commit a945b43c58

View File

@@ -29,7 +29,7 @@ fn main() -> anyhow::Result<()> {
"#; "#;
let module = Module::new(&module_wat); 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 import_object = imports! {};
let instance = Instance::new(module, &import_object)?; let instance = Instance::new(module, &import_object)?;