Skip to content

Commit b54a97c

Browse files
committed
Fix a typo and a signature in loader README
1 parent af96817 commit b54a97c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/loader/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Instances are automatically populated with useful utility:
7474
* **newArray**(view: `TypedArray`, length?: `number`, unsafe?: `boolean`): `number`<br />
7575
Copies a typed array into the module's memory and returns its pointer.
7676

77-
* **newArray**(ctor: `TypedArrayConstructor`, length: `number`): `number`<br />
77+
* **newArray**(ctor: `TypedArrayConstructor`, length: `number`, unsafe?: `boolean`): `number`<br />
7878
Creates a typed array in the module's memory and returns its pointer.
7979

8080
* **getArray**(ctor: `TypedArrayConstructor`, ptr: `number`): `TypedArray`<br />
@@ -92,7 +92,7 @@ Examples
9292

9393
```js
9494
// From a module provided as a buffer, i.e. as returned by fs.readFileSync
95-
const myModule = loader.instatiateBuffer(fs.readFileSync("myModule.wasm"), myImports);
95+
const myModule = loader.instantiateBuffer(fs.readFileSync("myModule.wasm"), myImports);
9696

9797
// From a response object, i.e. as returned by window.fetch
9898
const myModule = await loader.instantiateStreaming(fetch("myModule.wasm"), myImports);

0 commit comments

Comments
 (0)