Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b80dcb

Browse filesBrowse files
vipul kumarBethGriggs
authored andcommitted
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
Copy full SHA for 8b80dcb

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.