Skip to content

Commit 187e029

Browse files
committed
docs: apply suggestions from code review
--- 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: passed - 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 aa1c741 commit 187e029

File tree

2 files changed

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

2 files changed

+3
-5
lines changed

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var policies = {
9292
var table = {
9393
'default': base
9494
};
95-
var sorthp = new NullaryStrided1dDispatch( table, [ odt ], policies );
95+
var nullary = new NullaryStrided1dDispatch( table, [ odt ], policies );
9696

9797
var xbuf = [ -1.0, 2.0, -3.0 ];
9898
var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
@@ -101,7 +101,7 @@ var o = scalar2ndarray( 1.0, {
101101
'dtype': 'generic'
102102
});
103103

104-
var out = sorthp.assign( x, o, {
104+
var out = nullary.assign( x, o, {
105105
'dims': [ 0 ]
106106
});
107107
// returns <ndarray>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ function NullaryStrided1dDispatch( table, odtypes, policies, options ) {
224224
* 'dtype': 'generic'
225225
* });
226226
*
227-
* var out = sorthp.assign( x, o, {
228-
* 'dims': [ 0 ]
229-
* });
227+
* var out = sorthp.assign( x, o );
230228
* // returns <ndarray>
231229
*
232230
* var arr = ndarray2array( x );

0 commit comments

Comments
 (0)