summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-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 137f0762a..3848ae9a6 100644
--- a/std/wasi/README.md
+++ b/std/wasi/README.md
@@ -62,7 +62,7 @@ const wasi = new WASI({
env: Deno.env,
});
-const binary = Deno.readAll("path/to/your/module.wasm");
+const binary = await Deno.readFile("path/to/your/module.wasm");
const module = await WebAssembly.compile(binary);
const instance = await WebAssembly.instantiate(module, {
wasi_snapshot_preview1: wasi.exports,