Skip to content

Commit 96f430f

Browse files
committed
test: fix description and docs
1 parent 7c3729c commit 96f430f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/node_modules/@stdlib/array/base/mskput/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The function supports the following parameters:
4949
- **x**: input array.
5050
- **mask**: mask array.
5151
- **values**: values to set.
52-
- **mode**: string specifying whether to raise an exception when the number of `values` does not equal the number of falsy `mask` values.
52+
- **mode**: string specifying behavior when the number of `values` does not equal the number of falsy `mask` values.
5353

5454
The function supports the following modes:
5555

lib/node_modules/@stdlib/array/base/mskput/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ declare function mskput<T = unknown, U = unknown>( x: AccessorArrayLike<T>, mask
213213
* @example
214214
* var x = [ 1, 2, 3, 4 ];
215215
*
216-
* var out = mskput( x, [ 1, 0, 0, 1 ], [ 30 ], 'strict' );
216+
* var out = mskput( x, [ 1, 0, 0, 1 ], [ 30 ], 'strict_broadcast' );
217217
* // returns [ 1, 30, 30, 4 ]
218218
*
219219
* var bool = ( out === x );

lib/node_modules/@stdlib/array/base/mskput/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ tape( 'when the "mode" is "non_strict", the function throws an error if provided
390390
}
391391
});
392392

393-
tape( 'when the "mode" is "strict_broadcast", the function throws an error if a provided values array which is broadcast incompatible with the number of falsy values in a mask array (insufficient)', function test( t ) {
393+
tape( 'when the "mode" is "strict_broadcast", the function throws an error if provided a values array which is broadcast incompatible with the number of falsy values in a mask array (insufficient)', function test( t ) {
394394
var mask;
395395
var x;
396396

@@ -405,7 +405,7 @@ tape( 'when the "mode" is "strict_broadcast", the function throws an error if a
405405
}
406406
});
407407

408-
tape( 'when the "mode" is "strict_broadcast", the function throws an error if a provided values array which is broadcast incompatible with the number of falsy values in a mask array (too many)', function test( t ) {
408+
tape( 'when the "mode" is "strict_broadcast", the function throws an error if provided a values array which is broadcast incompatible with the number of falsy values in a mask array (too many)', function test( t ) {
409409
var mask;
410410
var x;
411411

@@ -420,7 +420,7 @@ tape( 'when the "mode" is "strict_broadcast", the function throws an error if a
420420
}
421421
});
422422

423-
tape( 'when the "mode" is "broadcast", the function throws an error if a provided values array which is broadcast incompatible with the number of falsy values in a mask array', function test( t ) {
423+
tape( 'when the "mode" is "broadcast", the function throws an error if provided a values array which is broadcast incompatible with the number of falsy values in a mask array', function test( t ) {
424424
var mask;
425425
var x;
426426

0 commit comments

Comments
 (0)