Skip to content

Commit 0ae1dd6

Browse files
author
TagawaHirotaka
authored
Fix test command example (#1043)
1 parent 79ae14d commit 0ae1dd6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ Examples:
631631

632632
```javascript
633633
if (test('-d', path)) { /* do something with dir */ };
634-
if (!test('-f', path)) continue; // skip if it's a regular file
634+
if (!test('-f', path)) continue; // skip if it's not a regular file
635635
```
636636

637637
Evaluates `expression` using the available primaries and returns

src/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ common.register('test', _test, {
3535
//@
3636
//@ ```javascript
3737
//@ if (test('-d', path)) { /* do something with dir */ };
38-
//@ if (!test('-f', path)) continue; // skip if it's a regular file
38+
//@ if (!test('-f', path)) continue; // skip if it's not a regular file
3939
//@ ```
4040
//@
4141
//@ Evaluates `expression` using the available primaries and returns

0 commit comments

Comments
 (0)