Skip to content

Commit 9b68d84

Browse files
cbourgoisnodejs-github-bot
authored andcommittedJul 7, 2021
doc: fix constants usage in fs.access example
PR-URL: nodejs#39289 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 4de6f20 commit 9b68d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ access(file, constants.W_OK, (err) => {
13931393
});
13941394
13951395
// Check if the file exists in the current directory, and if it is writable.
1396-
access(file, constants.F_OK | fs.constants.W_OK, (err) => {
1396+
access(file, constants.F_OK | constants.W_OK, (err) => {
13971397
if (err) {
13981398
console.error(
13991399
`${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);

0 commit comments

Comments
 (0)
Please sign in to comment.