Skip to content

Commit 7879bf0

Browse files
committed
docs: fix example
1 parent 299be6a commit 7879bf0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/array/base/put/lib

lib/node_modules/@stdlib/array/base/put/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ function boolean( x, indices, values, stride, getIndex, maxIndex ) {
256256
* var x = [ 1, 2, 3, 4 ];
257257
*
258258
* var indices = [ 1, 2 ];
259-
* var values = [ 20, 30 ];
259+
* var values = [ 30 ];
260260
*
261-
* var out = put( x, indices, [ 30 ], 'throw' );
261+
* var out = put( x, indices, values, 'throw' );
262262
* // returns [ 1, 30, 30, 4 ]
263263
*
264264
* var bool = ( out === x );

0 commit comments

Comments
 (0)