From 2ef61b987dc3eae2508a9dc51e7b14cb28a8241b 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 07290ab12b1..46a8270c038 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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'}`);