Fix &mut env in migration docs

This commit is contained in:
Syrus Akbary
2020-11-20 16:27:27 -08:00
committed by GitHub
parent 3c788dd169
commit 1892e75f0a

View File

@@ -222,7 +222,7 @@ struct Env {
counter: Arc<RefCell<i32>>,
}
fn get_counter(env: &mut Env) -> i32 {
fn get_counter(env: &Env) -> i32 {
*env.counter.borrow()
}
@@ -343,4 +343,4 @@ you'll be able to delegate most of the work to Wasmer:
[memory-pointers]: https://docs.wasmer.io/integrations/examples/memory-pointers
[host-functions]: https://docs.wasmer.io/integrations/examples/host-functions
[errors]: https://docs.wasmer.io/integrations/examples/errors
[exit-early]: https://docs.wasmer.io/integrations/examples/exit-early
[exit-early]: https://docs.wasmer.io/integrations/examples/exit-early