From b54a97c0fe209611853f45d5e8822ea6afde90ad Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 11 Oct 2018 08:22:20 +0200 Subject: [PATCH] Fix a typo and a signature in loader README --- lib/loader/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/loader/README.md b/lib/loader/README.md index d921b5d1..88a27dbf 100644 --- a/lib/loader/README.md +++ b/lib/loader/README.md @@ -74,7 +74,7 @@ Instances are automatically populated with useful utility: * **newArray**(view: `TypedArray`, length?: `number`, unsafe?: `boolean`): `number`
Copies a typed array into the module's memory and returns its pointer. -* **newArray**(ctor: `TypedArrayConstructor`, length: `number`): `number`
+* **newArray**(ctor: `TypedArrayConstructor`, length: `number`, unsafe?: `boolean`): `number`
Creates a typed array in the module's memory and returns its pointer. * **getArray**(ctor: `TypedArrayConstructor`, ptr: `number`): `TypedArray`
@@ -92,7 +92,7 @@ Examples ```js // From a module provided as a buffer, i.e. as returned by fs.readFileSync -const myModule = loader.instatiateBuffer(fs.readFileSync("myModule.wasm"), myImports); +const myModule = loader.instantiateBuffer(fs.readFileSync("myModule.wasm"), myImports); // From a response object, i.e. as returned by window.fetch const myModule = await loader.instantiateStreaming(fetch("myModule.wasm"), myImports);