diff --git a/doc/api/fs.md b/doc/api/fs.md index 6d486a05b573c9..9a40da075532eb 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])`