From c0f4522dd68e9c1715ed83fdccc2b198ca850bb5 Mon Sep 17 00:00:00 2001 From: vipul kumar Date: Fri, 3 Sep 2021 15:41:58 +0530 Subject: [PATCH] doc/api: listed server.listen() parameters and made some minor corrections listed server.listen() optional paramenters that are used in examples but not documented and corrected some misleading commas. Changes : modified: doc/api/fs.md : updated server.listen() and corrected commas modified: doc/api/http.md : corrected commas modified: doc/api/stream.md : corrected commas --- 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 f41ebdf56ce3de..6d486a05b573c9 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2651,7 +2651,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. @@ -4871,7 +4871,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])`