mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-03 03:08:22 +00:00
Fix &mut env in migration docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user