From 8a5004ab160be40a764fdc1b975d8e354a571a93 Mon Sep 17 00:00:00 2001 From: Gururaj Gurram Date: Tue, 17 Sep 2024 03:05:47 +0530 Subject: [PATCH] update: README.md --- .../fs/resolve-parent-paths-by/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/fs/resolve-parent-paths-by/README.md b/lib/node_modules/@stdlib/fs/resolve-parent-paths-by/README.md index 6c92c3a98f8..233659e210f 100644 --- a/lib/node_modules/@stdlib/fs/resolve-parent-paths-by/README.md +++ b/lib/node_modules/@stdlib/fs/resolve-parent-paths-by/README.md @@ -44,12 +44,12 @@ function predicate( path, next ) { next( null, bool ); } -function onPath( error, path ) { +function onPath( error, paths ) { if ( error ) { throw error; } - console.log( path ); - // e.g., => '...' + console.log( paths ); + // e.g., => [ '...' ] } ``` @@ -79,12 +79,12 @@ function predicate( path, next ) { next( null, bool ); } -function onPath( error, path ) { +function onPath( error, paths ) { if ( error ) { throw error; } - console.log( path ); - // e.g., => '...' + console.log( paths ); + // e.g., => [ '...' ] } ``` @@ -116,7 +116,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => '...' + // => [ '...' ] } ``` @@ -189,11 +189,11 @@ function predicateAsync( path, next ) { } } -function onPath( error, path ) { +function onPath( error, paths ) { if ( error ) { throw error; } - console.log( path ); + console.log( paths ); } resolveParentPathsBy( [ 'package.json', 'README.md' ], opts, predicateAsync, onPath );