Skip to content

Commit fea7ce6

Browse files
committed
docs: fix examples
--- 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 a144a25 commit fea7ce6

File tree

1 file changed

+2
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib

1 file changed

+2
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ var factory = require( './main_factory.js' );
8989
* };
9090
*
9191
* // Apply strided function:
92-
* var f = factory();
93-
* f( wrapper, [ x, sortOrder ], [ 2, 3 ] );
92+
* nullaryStrided1d( wrapper, [ x, sortOrder ], [ 2, 3 ] );
9493
*
9594
* var arr = ndarray2array( x.data, x.shape, x.strides, x.offset, x.order );
9695
* // returns [ [ [ [ 9.0, 10.0 ], [ 11.0, 12.0 ] ], [ [ 5.0, 6.0 ], [ 7.0, 8.0 ] ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ] ] ]
@@ -143,8 +142,7 @@ var factory = require( './main_factory.js' );
143142
* };
144143
*
145144
* // Apply strided function:
146-
* var f = factory();
147-
* f( wrapper, [ x, sortOrder ], [ 0, 1, 2 ] );
145+
* nullaryStrided1d( wrapper, [ x, sortOrder ], [ 0, 1, 2 ] );
148146
*
149147
* var arr = ndarray2array( x.data, x.shape, x.strides, x.offset, x.order );
150148
* // returns [ [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ], [ [ 5.0, 6.0 ], [ 7.0, 8.0 ] ], [ [ 9.0, 10.0 ], [ 11.0, 12.0 ] ] ]

0 commit comments

Comments
 (0)