Skip to content

Commit def5eab

Browse files
committed
docs: fix description
1 parent 6e5b8a1 commit def5eab

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/wasm/module-wrapper/lib

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,15 @@ setReadOnly( WasmModule.prototype, 'initializeSync', function initializeSync() {
303303
* ## Notes
304304
*
305305
* - WebAssembly memory can only **grow**, not shrink. Hence, if provided a number of bytes which is less than or equal to the size of the current memory, the function does nothing.
306-
* - When memory is resized, the underlying the `ArrayBuffer` is detached, consequently invalidating any associated typed array views. Before resizing memory, ensure that associated typed array views no longer need byte access and can be garbage collected.
306+
* - When non-shared memory is resized, the underlying the `ArrayBuffer` is detached, consequently invalidating any associated typed array views. Before resizing non-shared memory, ensure that associated typed array views no longer need byte access and can be garbage collected.
307307
*
308308
* @name realloc
309309
* @memberof WasmModule.prototype
310310
* @readonly
311311
* @type {Function}
312312
* @param {NonNegativeInteger} nbytes - memory size (in bytes)
313313
* @throws {TypeError} must provide a nonnegative integer
314-
* @returns {boolean} boolean indicating whether the resize operation was successful and the underlying `ArrayBuffer` was detached
314+
* @returns {boolean} boolean indicating whether the resize operation was successful
315315
*/
316316
setReadOnly( WasmModule.prototype, 'realloc', function realloc( nbytes ) {
317317
var size;
@@ -440,7 +440,7 @@ setReadOnly( WasmModule.prototype, 'write', function write( byteOffset, values )
440440
* @memberof WasmModule.prototype
441441
* @readonly
442442
* @type {Function}
443-
* @param {NonNegativeInteger} byteOffset - byte offset at which to start writing values
443+
* @param {NonNegativeInteger} byteOffset - byte offset at which to start reading values
444444
* @param {Collection} out - output array for storing read values
445445
* @throws {TypeError} first argument must be a nonnegative integer
446446
* @throws {TypeError} second argument must be a collection

0 commit comments

Comments
 (0)