doc: fix typo "director" instead of "directory"

Change fs.readdirSync() description from "Reads the contents of
the director." to "Reads the contents of the directory."

PR-URL: https://github.com/nodejs/node/pull/37523
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
humanwebpl 2021-02-26 13:34:09 +01:00 committed by James M Snell
parent e6cbec59c4
commit 1ca4a9cdbf
No known key found for this signature in database
GPG Key ID: 7341B15C070877AC

View File

@ -4533,7 +4533,7 @@ changes:
* `withFileTypes` {boolean} **Default:** `false`
* Returns: {string[]|Buffer[]|fs.Dirent[]}
Reads the contents of the director.
Reads the contents of the directory.
See the POSIX readdir(3) documentation for more details.