Skip to content

Commit 8499db6

Browse files
Snehil-Shahkgryte
andauthored
docs: update resolve-parent-paths examples
PR-URL: #2908 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]> Signed-off-by: Snehil Shah <[email protected]> Signed-off-by: Athan Reines <[email protected]>
1 parent e722c97 commit 8499db6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function onPaths( error, paths ) {
4444
throw error;
4545
}
4646
console.log( paths );
47-
// => '...'
47+
// => [...]
4848
}
4949
```
5050

@@ -74,7 +74,7 @@ function onPaths( error, paths ) {
7474
throw error;
7575
}
7676
console.log( paths );
77-
// => '...'
77+
// => [...]
7878
}
7979
```
8080

@@ -92,7 +92,7 @@ function onPaths( error, paths ) {
9292
throw error;
9393
}
9494
console.log( paths );
95-
// => '...'
95+
// => [...]
9696
}
9797
```
9898

@@ -102,7 +102,7 @@ Synchronously resolves paths from a set of paths by walking parent directories.
102102

103103
```javascript
104104
var paths = resolveParentPaths.sync( [ 'package.json', 'README.md' ] );
105-
// returns [ '...', '...' ]
105+
// returns [...]
106106
```
107107

108108
The function accepts the same `options` as [`resolveParentPaths()`](#resolve-parent-paths).
@@ -138,14 +138,14 @@ var opts = {
138138
/* Sync */
139139

140140
var out = resolveParentPaths.sync( [ 'package.json', 'README.md' ], opts );
141-
// returns [ '...', '...' ]
141+
// returns [...]
142142

143143
out = resolveParentPaths.sync( [ 'non_existent_basename' ], opts );
144144
// returns []
145145

146146
opts.mode = 'first';
147147
out = resolveParentPaths.sync( [ 'non_existent_basename', 'package.json' ], opts );
148-
// returns [ '...' ]
148+
// returns [...]
149149

150150
/* Async */
151151

lib/node_modules/@stdlib/fs/resolve-parent-paths/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var opts = {
2828

2929
var out = resolveParentPaths.sync( [ 'package.json', 'README.md' ], opts );
3030
console.log( out );
31-
// => [ '...', '...' ]
31+
// => [...]
3232

3333
out = resolveParentPaths.sync( [ 'non_existent_basename', 'package.json' ], opts );
3434
console.log( out );
@@ -37,7 +37,7 @@ console.log( out );
3737
opts.mode = 'first';
3838
out = resolveParentPaths.sync( [ 'non_existent_basename', 'package.json' ], opts );
3939
console.log( out );
40-
// => [ '...' ]
40+
// => [...]
4141

4242
/* Async */
4343

0 commit comments

Comments
 (0)