Skip to content

Commit 5d2dca1

Browse files
committed
chore: minor clean-up
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 29cde0f commit 5d2dca1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/ndarray/shift/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var y = shift( x );
6060
// returns [ <ndarray>, <ndarray> ]
6161

6262
arr = ndarray2array( y[ 0 ] );
63-
// returns [ [ 2.0], [ 4.0 ], [ 6.0 ] ]
63+
// returns [ [ 2.0 ], [ 4.0 ], [ 6.0 ] ]
6464

6565
arr = ndarray2array( y[ 1 ] );
6666
// returns [ [ 1.0 ], [ 3.0 ], [ 5.0 ] ]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var format = require( '@stdlib/string/format' );
3939
* @throws {TypeError} first argument must be an ndarray having one or more dimensions
4040
* @throws {RangeError} dimension index exceeds the number of dimensions
4141
* @throws {TypeError} options argument must be an object
42-
* * @throws {TypeError} must provide valid options
42+
* @throws {TypeError} must provide valid options
4343
* @returns {Array<ndarray>} a list of ndarray views
4444
*
4545
* @example
@@ -83,7 +83,7 @@ function shift( x ) {
8383
}
8484
if ( hasOwnProp( options, 'dim' ) ) {
8585
if ( !isInteger( options.dim ) ) {
86-
throw new TypeError( format( 'invalid option. `%s` option must be an integer. Option: `%s`.', 'strict', options.dim ) );
86+
throw new TypeError( format( 'invalid option. `%s` option must be an integer. Option: `%s`.', 'dim', options.dim ) );
8787
}
8888
opts.dim = options.dim;
8989
}

0 commit comments

Comments
 (0)