Skip to content

Commit 748152d

Browse files
authored
docs: update example
Signed-off-by: Athan <[email protected]>
1 parent 30b6b81 commit 748152d

File tree

1 file changed

+1
-3
lines changed
  • lib/node_modules/@stdlib/utils/async/inmap/lib

1 file changed

+1
-3
lines changed

lib/node_modules/@stdlib/utils/async/inmap/lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* @module @stdlib/utils/async/inmap
2525
*
2626
* @example
27-
* ```js
2827
* var readFile = require( '@stdlib/fs/read-file' );
2928
* var inmapAsync = require( '@stdlib/utils/async/inmap' );
3029
*
@@ -35,7 +34,7 @@
3534
*
3635
* function done( error, results ) {
3736
* if ( error ) {
38-
* throw error;
37+
* return console.error( error.message );
3938
* }
4039
* console.log( results );
4140
* }
@@ -56,7 +55,6 @@
5655
* }
5756
*
5857
* inmapAsync( files, read, done );
59-
* ```
6058
*/
6159

6260
// MODULES //

0 commit comments

Comments
 (0)