mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-03 11:18:31 +00:00
Update docs/migration_to_3.0.0.md
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user