Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7147,8 +7147,8 @@ added: v0.1.93

* Extends: {stream.Readable}

Instances of {fs.ReadStream} are created and returned using the
[`fs.createReadStream()`][] function.
`fs.ReadStream` is not to be constructed directly; use
[`fs.createReadStream()`][] instead.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues in principle, but I think this would scan better as a combination of your wording and the original wording, eg.

Instances of {fs.ReadStream} cannot be constructed directly. They are created and
returned using the [`fs.createReadStream()`][] function.


#### Event: `'close'`

Expand Down Expand Up @@ -7918,8 +7918,8 @@ added: v0.1.93

* Extends {stream.Writable}

Instances of {fs.WriteStream} are created and returned using the
[`fs.createWriteStream()`][] function.
`fs.WriteStream` is not to be constructed directly; use
[`fs.createWriteStream()`][] instead.

#### Event: `'close'`

Expand Down