Skip to content

Commit 2ef61b9

Browse files
cbourgoistargos
authored andcommitted
doc: fix constants usage in fs.access example
PR-URL: #39289 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent b2c533e commit 2ef61b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ access(file, constants.W_OK, (err) => {
13811381
});
13821382
13831383
// Check if the file exists in the current directory, and if it is writable.
1384-
access(file, constants.F_OK | fs.constants.W_OK, (err) => {
1384+
access(file, constants.F_OK | constants.W_OK, (err) => {
13851385
if (err) {
13861386
console.error(
13871387
`${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);

0 commit comments

Comments
 (0)