Skip to content

Commit 82a593d

Browse files
committed
fix: correct doctest return values in ndarray/with
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: skipped - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 85af9d8 commit 82a593d

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/node_modules/@stdlib/ndarray/with/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
Examples
2323
--------
2424
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] );
25-
> var out = {{alias}}( x, [ 0, 0 ], 5 );
26-
<ndarray>[ 5 ]
25+
> var out = {{alias}}( x, [ 0, 0 ], 5 )
26+
<ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
2727

2828
See Also
2929
--------

lib/node_modules/@stdlib/ndarray/with/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var x = ndarray( 'generic', buffer, shape, strides, offset, order );
4343
*
4444
* var out = ndarrayWith( x, [ 0, 0 ], 5 );
45-
* // returns <ndarray>[ 5 ]
45+
* // returns <ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
4646
*/
4747
declare function ndarrayWith<T = unknown, U extends typedndarray<T> = typedndarray<T>>( x: typedndarray<T>, indices: Array<number>, value: T ): U;
4848

lib/node_modules/@stdlib/ndarray/with/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* // returns <ndarray>
3838
*
3939
* var out = ndarrayWith( x, [ 0, 0 ], 5 );
40-
* // returns <ndarray>[ 5 ]
40+
* // returns <ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
4141
*/
4242

4343
// MODULES //

lib/node_modules/@stdlib/ndarray/with/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var format = require( '@stdlib/string/format' );
5858
* var x = ndarray( 'generic', buffer, shape, strides, offset, order );
5959
*
6060
* var out = ndarrayWith( x, [ 0, 0 ], 5 );
61-
* // returns <ndarray>[ 5 ]
61+
* // returns <ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
6262
*/
6363
function ndarrayWith( x, indices, value ) {
6464
var args;

0 commit comments

Comments
 (0)