Skip to content

Commit 28ccbe3

Browse files
sujal sunil chaudharysujal sunil chaudhary
authored andcommitted
fix: correct doctest example for entry-points async (closes #8322)
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 76c09a7 commit 28ccbe3

File tree

1 file changed

+4
-3
lines changed
  • lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib

1 file changed

+4
-3
lines changed

lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/async.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ var debug = logger( 'entry-points:async' );
5353
* @throws {TypeError} must provide valid options
5454
*
5555
* @example
56-
* var pkgs = [ '/foo/bar/baz' ];
56+
* var pkgs = [ './some/nonexistent/path' ];
5757
*
5858
* entryPoints( pkgs, clbk );
5959
*
6060
* function clbk( error, results ) {
6161
* if ( error ) {
62-
* throw error;
62+
* console.error( error.message );
63+
* } else {
64+
* console.dir( results );
6365
* }
64-
* console.dir( results );
6566
* }
6667
*/
6768
function entryPoints( pkgs, options, clbk ) {

0 commit comments

Comments
 (0)