summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/wasi/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/wasi/README.md b/std/wasi/README.md
index 06dc36ff5..4cbcbbca3 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();