Skip to content

Commit 704ed0e

Browse files
committed
Update examples
1 parent 25294a3 commit 704ed0e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/lint/filenames/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Asynchronously lints filenames.
1717
```javascript
1818
lint( onLint );
1919

20-
function onLint( error, names ) {
20+
function onLint( error, filenames ) {
2121
if ( error ) {
2222
throw error;
2323
}
@@ -39,11 +39,11 @@ var opts = {
3939

4040
lint( opts, onLint );
4141

42-
function onLint( error, names ) {
42+
function onLint( error, filenames ) {
4343
if ( error ) {
4444
throw error;
4545
}
46-
console.log( JSON.stringify( names ) );
46+
console.log( JSON.stringify( filenames ) );
4747
}
4848
```
4949

@@ -56,11 +56,11 @@ var opts = {
5656

5757
lint( opts, onLint );
5858

59-
function onLint( error, names ) {
59+
function onLint( error, filenames ) {
6060
if ( error ) {
6161
throw error;
6262
}
63-
console.log( JSON.stringify( names ) );
63+
console.log( JSON.stringify( filenames ) );
6464
}
6565
```
6666

@@ -69,7 +69,7 @@ function onLint( error, names ) {
6969
Synchronously lints filenames.
7070

7171
```javascript
72-
var names = lint.sync();
72+
var filenames = lint.sync();
7373
// returns [...]
7474
```
7575

@@ -112,11 +112,11 @@ var lint = require( '@stdlib/tools/lint/filenames' );
112112
113113
lint( onLint );
114114
115-
function onLint( error, names ) {
115+
function onLint( error, filenames ) {
116116
if ( error ) {
117117
throw error;
118118
}
119-
console.log( JSON.stringify( names ) );
119+
console.log( JSON.stringify( filenames ) );
120120
}
121121
```
122122

0 commit comments

Comments
 (0)