Skip to content

Commit cf1b19d

Browse files
authored
docs: update example to resolve lint failures
PR-URL: stdlib-js#8331 Closes: stdlib-js#8322 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 7dae036 commit cf1b19d

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)