Skip to content

Commit 8b80dcb

Browse files
vipul kumarBethGriggs
vipul kumar
authored andcommittedSep 21, 2021
doc: correct parameters in fs and stream documentation
PR-URL: #39984 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent dd50b91 commit 8b80dcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ changes:
26322632
Asynchronously creates a directory.
26332633
26342634
The callback is given a possible exception and, if `recursive` is `true`, the
2635-
first directory path created, `(err, [path])`.
2635+
first directory path created, `(err[, path])`.
26362636
`path` can still be `undefined` when `recursive` is `true`, if no directory was
26372637
created.
26382638
@@ -4854,7 +4854,7 @@ Returns the number of `bytesRead`.
48544854
For detailed information, see the documentation of the asynchronous version of
48554855
this API: [`fs.read()`][].
48564856
4857-
### `fs.readSync(fd, buffer, [options])`
4857+
### `fs.readSync(fd, buffer[, options])`
48584858
<!-- YAML
48594859
added:
48604860
- v13.13.0

‎doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ await finished(compose(s1, s2, s3));
20422042
console.log(res); // prints 'HELLOWORLD'
20432043
```
20442044

2045-
### `stream.Readable.from(iterable, [options])`
2045+
### `stream.Readable.from(iterable[, options])`
20462046
<!-- YAML
20472047
added:
20482048
- v12.3.0

0 commit comments

Comments
 (0)
Please sign in to comment.