From a026b99c56584442479dad24c7f76eeda0416896 Mon Sep 17 00:00:00 2001 From: vipul kumar Date: Sat, 4 Sep 2021 12:06:59 +0530 Subject: [PATCH 1/2] doc: listed server.listen() parametes in http.md and some corrections doc/api/http.md: listed server.listen() parameters --- doc/api/fs.md | 4 ++-- doc/api/http.md | 6 +++++- doc/api/stream.md | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 3be576e175eed5..0d4aab538d14b6 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2660,7 +2660,7 @@ changes: Asynchronously creates a directory. The callback is given a possible exception and, if `recursive` is `true`, the -first directory path created, `(err, [path])`. +first directory path created, `(err[, path])`. `path` can still be `undefined` when `recursive` is `true`, if no directory was created. @@ -4886,7 +4886,7 @@ Returns the number of `bytesRead`. For detailed information, see the documentation of the asynchronous version of this API: [`fs.read()`][]. -### `fs.readSync(fd, buffer, [options])` +### `fs.readSync(fd, buffer[, options])`