Skip to content

Commit

Permalink
Update migration_to_3.0.0.md
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary authored Aug 16, 2022
1 parent 2f177a1 commit 544cbe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/migration_to_3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
```


Expand Down

0 comments on commit 544cbe0

Please sign in to comment.