diff --git a/doc/api/fs.md b/doc/api/fs.md index 179cabbfff5113..11e5b2c39fb785 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -901,6 +901,9 @@ try { } ``` +When using the async iterator, the {fs.Dir} object will be automatically +closed after the iterator exits. + ### `fsPromises.readdir(path[, options])`