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>>, counter: Arc<RefCell<i32>>,
} }
fn get_counter(env: &mut Env) -> i32 { fn get_counter(env: &Env) -> i32 {
*env.counter.borrow() *env.counter.borrow()
} }