diff --git a/doc/api/fs.md b/doc/api/fs.md index aab3adaaa32afb..d87c0f7a80b641 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -60,7 +60,7 @@ Promise-based operations return a `Promise` that is resolved when the asynchronous operation is complete. ```js -const fs = require('fs/promises'); +const fs = require('fs').promises; (async function(path) { try {