Skip to content

Commit 179f005

Browse files
committed
fix: use correct variable name
--- 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 3f2c722 commit 179f005

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/array/struct-factory/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/array/struct-factory/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function factory( arg ) { // eslint-disable-line stdlib/jsdoc-require-throws-tag
147147
} else if ( isStructConstructor( arg ) ) {
148148
Struct = arg;
149149
} else {
150-
throw new TypeError( format( 'invalid argument. First argument must be either a struct constructor or struct schema. Value: `%s`.', Struct ) );
150+
throw new TypeError( format( 'invalid argument. First argument must be either a struct constructor or struct schema. Value: `%s`.', arg ) );
151151
}
152152
BYTES_PER_ELEMENT = Struct.byteLength;
153153
LAYOUT = Struct.layout; // TODO: consider whether to lazily materialize the struct layout, as this could potentially be a long string (hence increased memory consumption) depending on the complexity of the struct

0 commit comments

Comments
 (0)