diff --git a/doc/api/fs.md b/doc/api/fs.md index 0cabd57120e424..0a39adb2d85c1b 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -932,7 +932,7 @@ import { readdir } from 'fs/promises'; try { const files = await readdir(path); - for await (const file of files) + for (const file of files) console.log(file); } catch (err) { console.error(err);