From 796504d896be83eb54854ab036d3378e3a9c8f21 Mon Sep 17 00:00:00 2001 From: humanwebpl <58517331+humanwebpl@users.noreply.github.com> Date: Fri, 26 Feb 2021 13:34:09 +0100 Subject: [PATCH] doc: fix typo "director" instead of "directory" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Harshitha K P Reviewed-By: Darshan Sen Reviewed-By: Rich Trott Reviewed-By: Benjamin Gruenbaum Reviewed-By: Gerhard Stöbich Reviewed-By: James M Snell --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 2c0b26f2dca01e..05e4ed09cda2e4 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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.