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 <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
cbourgois authored and targos committed Sep 4, 2021
1 parent b2c533e commit 2ef61b9
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 @@ -1381,7 +1381,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 2ef61b9

Please sign in to comment.