diff --git a/lib/api/README.md b/lib/api/README.md index 46a016fb8ab..38b4f2839bb 100644 --- a/lib/api/README.md +++ b/lib/api/README.md @@ -29,10 +29,10 @@ fn main() -> anyhow::Result<()> { let module = Module::new(&store, &module_wat)?; // The module doesn't import anything, so we create an empty import object. let import_object = imports! {}; - let instance = Instance::new(&module, &import_object)?; + let instance = Instance::new(&mut store, &module, &import_object)?; let add_one = instance.exports.get_function("add_one")?; - let result = add_one.call(&[Value::I32(42)])?; + let result = add_one.call(&mut store, &[Value::I32(42)])?; assert_eq!(result[0], Value::I32(43)); Ok(())