diff --git a/doc/api/fs.md b/doc/api/fs.md index 07290ab12b1a3a..46a8270c038d72 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'}`);