diff --git a/std/wasi/README.md b/std/wasi/README.md index 06dc36ff5b..4cbcbbca36 100644 --- a/std/wasi/README.md +++ b/std/wasi/README.md @@ -68,7 +68,7 @@ const instance = await WebAssembly.instantiate(module, { wasi_snapshot_preview1: wasi.exports, }); -wasi.memory = module.exports.memory; +wasi.memory = instance.exports.memory; if (module.exports._start) { instance.exports._start();