mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-03 03:08:22 +00:00
Update migration_to_3.0.0.md
This commit is contained in:
@@ -113,8 +113,8 @@ let env = FunctionEnv::new(&mut store, MyEnv {
|
||||
|
||||
let instance = Instance::new(&module, &imports);
|
||||
let mut env_mut = env.as_mut(&mut store);
|
||||
env_mut.memory = instance.exports.get_memory("memory");
|
||||
env_mut.alloc_guest_memory = instance.exports.get_typed_function("__alloc");
|
||||
env_mut.memory = Some(instance.exports.get_memory("memory"));
|
||||
env_mut.alloc_guest_memory = Some(instance.exports.get_typed_function("__alloc"));
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user