From 146f733f43887d9b314bd5bcf92d9b4d6ccff6b5 Mon Sep 17 00:00:00 2001 From: Cyrille Bourgois Date: Tue, 6 Jul 2021 19:29:16 +0200 Subject: [PATCH] doc: fix constants usage in fs.access example PR-URL: https://github.com/nodejs/node/pull/39289 Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 9ef306cd1be2f8..997e0ce2b490b8 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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'}`);