Skip to content

Commit 66764f1

Browse files
committed
docs: fix return value
--- 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: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent dcab5b7 commit 66764f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/ndarray/base/find/lib/1d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
*
7070
* // Test elements:
7171
* var out = find1d( x, -1, predicate );
72-
* // returns -1
72+
* // returns 2.0
7373
*/
7474
function find1d( x, sentinelValue, predicate, thisArg ) {
7575
var xbuf;

lib/node_modules/@stdlib/ndarray/base/find/lib/1d_accessors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* var sx = [ 2 ];
5757
*
5858
* // Define the index offset:
59-
* var ox = 0;
59+
* var ox = 1;
6060
*
6161
* // Create the input ndarray-like object:
6262
* var x = {
@@ -72,7 +72,7 @@
7272
*
7373
* // Test elements:
7474
* var out = find1d( x, -1, predicate );
75-
* // returns -1
75+
* // returns 2.0
7676
*/
7777
function find1d( x, sentinelValue, predicate, thisArg ) {
7878
var xbuf;

0 commit comments

Comments
 (0)