Skip to content

Commit ca0715e

Browse files
stanley2058avivkeller
authored andcommitted
docs: fix typos in wasm mjs example (#7333)
1 parent 8004e06 commit ca0715e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/site/pages/en/learn/getting-started/nodejs-with-webassembly.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ WebAssembly.instantiate(wasmBuffer).then(wasmModule => {
6666
import fs from 'node:fs/promises';
6767

6868
// Use readFile to read contents of the "add.wasm" file
69-
const wasmBuffer = await fs.readFile('path/to/add.wsm');
69+
const wasmBuffer = await fs.readFile('/path/to/add.wasm');
7070

7171
// Use the WebAssembly.instantiate method to instantiate the WebAssembly module
7272
const wasmModule = await WebAssembly.instantiate(wasmBuffer);
@@ -76,7 +76,7 @@ const { add } = wasmModule.instance.exports;
7676

7777
const sum = add(5, 6);
7878

79-
console.log(sum); // Outputs 11
79+
console.log(sum); // Outputs: 11
8080
```
8181

8282
## Interacting with the OS

0 commit comments

Comments
 (0)