Skip to content

Commit 74287d8

Browse files
committed
fixup! doc: clarify fs.ReadStream and fs.WriteStream are not constructable
apply reviewer suggestion: combine wording
1 parent 10646ba commit 74287d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/fs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7147,8 +7147,8 @@ added: v0.1.93
71477147
71487148
* Extends: {stream.Readable}
71497149
7150-
`fs.ReadStream` is not to be constructed directly; use
7151-
[`fs.createReadStream()`][] instead.
7150+
Instances of {fs.ReadStream} cannot be constructed directly. They are created and
7151+
returned using the [`fs.createReadStream()`][] function.
71527152
71537153
#### Event: `'close'`
71547154
@@ -7918,8 +7918,8 @@ added: v0.1.93
79187918
79197919
* Extends {stream.Writable}
79207920
7921-
`fs.WriteStream` is not to be constructed directly; use
7922-
[`fs.createWriteStream()`][] instead.
7921+
Instances of {fs.WriteStream} cannot be constructed directly. They are created and
7922+
returned using the [`fs.createWriteStream()`][] function.
79237923
79247924
#### Event: `'close'`
79257925

0 commit comments

Comments
 (0)