Commit 10646ba
doc: clarify fs.ReadStream and fs.WriteStream are not constructable
Add explicit wording that fs.ReadStream and fs.WriteStream should not
be constructed directly, matching the existing pattern used by fs.Stats
("not to be created directly using the new keyword"). The factory
functions fs.createReadStream() and fs.createWriteStream() are the
supported API.
Fixes: #40546
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3bbed16 commit 10646ba
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7147 | 7147 | | |
7148 | 7148 | | |
7149 | 7149 | | |
7150 | | - | |
7151 | | - | |
| 7150 | + | |
| 7151 | + | |
7152 | 7152 | | |
7153 | 7153 | | |
7154 | 7154 | | |
| |||
7918 | 7918 | | |
7919 | 7919 | | |
7920 | 7920 | | |
7921 | | - | |
7922 | | - | |
| 7921 | + | |
| 7922 | + | |
7923 | 7923 | | |
7924 | 7924 | | |
7925 | 7925 | | |
| |||
0 commit comments