Skip to content

Commit

Permalink
Fix test command example (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
TagawaHirotaka committed Sep 3, 2021
1 parent 79ae14d commit 0ae1dd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ Examples:

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

Evaluates `expression` using the available primaries and returns
Expand Down
2 changes: 1 addition & 1 deletion src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ common.register('test', _test, {
//@
//@ ```javascript
//@ if (test('-d', path)) { /* do something with dir */ };
//@ if (!test('-f', path)) continue; // skip if it's a regular file
//@ if (!test('-f', path)) continue; // skip if it's not a regular file
//@ ```
//@
//@ Evaluates `expression` using the available primaries and returns
Expand Down

0 comments on commit 0ae1dd6

Please sign in to comment.