Skip to content

Commit

Permalink
doc: correct parameters in fs and stream documentation
Browse files Browse the repository at this point in the history
PR-URL: #39984
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
vipul kumar authored and BethGriggs committed Sep 21, 2021
1 parent dd50b91 commit 8b80dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,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.
Expand Down Expand Up @@ -4854,7 +4854,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])`
<!-- YAML
added:
- v13.13.0
Expand Down
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,7 @@ await finished(compose(s1, s2, s3));
console.log(res); // prints 'HELLOWORLD'
```

### `stream.Readable.from(iterable, [options])`
### `stream.Readable.from(iterable[, options])`
<!-- YAML
added:
- v12.3.0
Expand Down

0 comments on commit 8b80dcb

Please sign in to comment.