From dbeebfc6b9cbdd0ac19ebd3f97aabf248b98ecaf Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 21 Jul 2022 13:50:41 -0700 Subject: [PATCH] Apply suggestions from code review --- docs/migration_to_3.0.0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/migration_to_3.0.0.md b/docs/migration_to_3.0.0.md index 20bb04d4b..52b2cf9b2 100644 --- a/docs/migration_to_3.0.0.md +++ b/docs/migration_to_3.0.0.md @@ -148,8 +148,8 @@ let wasm_bytes = wat2wasm( let compiler_config = Cranelift::default(); let mut store = Store::new(&compiler_config); -let module = Module::new(&store.as_store_ref(), wasm_bytes)?; -let instance = Instance::new(&mut store.as_store_mut(), &module, &imports! {})?; +let module = Module::new(&store, wasm_bytes)?; +let instance = Instance::new(&mut store, &module, &imports! {})?; ``` [examples]: https://docs.wasmer.io/integrations/examples