Skip to content

Commit 1e0bdb4

Browse files
committed
docs: fix example
--- 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 fe1c628 commit 1e0bdb4

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
* }
9595
*
9696
* // Create a data buffer:
97-
* var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ];
97+
* var xbuf = [ 12.0, 11.0, 10.0, 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0 ];
9898
*
9999
* // Define an array shape:
100100
* var xsh = [ 1, 3, 2, 2 ];
@@ -126,11 +126,11 @@
126126
* };
127127
*
128128
* // Create a function for applying a strided function:
129-
* var gsorthp = nullaryStrided1d.factory( wrapper );
129+
* var sorthp = nullaryStrided1d.factory( wrapper );
130130
* // returns <Function>
131131
*
132132
* // Apply strided function:
133-
* gsorthp( [ x, sortOrder ], [ 2, 3 ] );
133+
* sorthp( [ x, sortOrder ], [ 2, 3 ] );
134134
*
135135
* var arr = ndarray2array( x.data, x.shape, x.strides, x.offset, x.order );
136136
* // 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 ] ] ] ]

0 commit comments

Comments
 (0)