Skip to content

Commit

Permalink
update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gururaj1512 committed Sep 16, 2024
1 parent 304c2a0 commit 8a5004a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/node_modules/@stdlib/fs/resolve-parent-paths-by/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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., => [ '...' ]
}
```

Expand Down Expand Up @@ -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., => [ '...' ]
}
```

Expand Down Expand Up @@ -116,7 +116,7 @@ function onPaths( error, paths ) {
throw error;
}
console.log( paths );
// => '...'
// => [ '...' ]
}
```

Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 8a5004a

Please sign in to comment.