Skip to content

Commit

Permalink
doc: fix constants usage in fs.access example
Browse files Browse the repository at this point in the history
PR-URL: #39289
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
cbourgois authored and nodejs-github-bot committed Jul 7, 2021
1 parent 4de6f20 commit 9b68d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ access(file, constants.W_OK, (err) => {
});
// Check if the file exists in the current directory, and if it is writable.
access(file, constants.F_OK | fs.constants.W_OK, (err) => {
access(file, constants.F_OK | constants.W_OK, (err) => {
if (err) {
console.error(
`${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);
Expand Down

0 comments on commit 9b68d84

Please sign in to comment.