From f4292bc17b4611c8d86ee2329494a49562b6498f Mon Sep 17 00:00:00 2001 From: vipul kumar Date: Sat, 4 Sep 2021 12:06:59 +0530 Subject: [PATCH] doc: correct parameters in fs and stream documentation PR-URL: https://github.com/nodejs/node/pull/39984 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- doc/api/fs.md | 4 ++-- doc/api/stream.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 5f713cc606088b..e3aa603dc5a870 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2680,7 +2680,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. @@ -4908,7 +4908,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])`