Update docs/migration_to_3.0.0.md

This commit is contained in:
Syrus Akbary
2022-07-21 13:51:58 -07:00
committed by GitHub
parent dbeebfc6b9
commit 3a1424ec4a

View File

@@ -66,7 +66,6 @@ let env = FunctionEnv::new(&mut store, my_counter);
Any type can be passed as the environment: (*Nota bene* the passed type `T` must implement the `Any` trait, that is, any type which contains a non-`'static` reference.) Any type can be passed as the environment: (*Nota bene* the passed type `T` must implement the `Any` trait, that is, any type which contains a non-`'static` reference.)
```rust ```rust
#[derive(Clone)]
struct Env { struct Env {
counter: i32, counter: i32,
} }