Commit 4a1f20e
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>
PR-URL: #62208
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 40a43ac commit 4a1f20e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7155 | 7155 | | |
7156 | 7156 | | |
7157 | 7157 | | |
7158 | | - | |
7159 | | - | |
| 7158 | + | |
| 7159 | + | |
7160 | 7160 | | |
7161 | 7161 | | |
7162 | 7162 | | |
| |||
7926 | 7926 | | |
7927 | 7927 | | |
7928 | 7928 | | |
7929 | | - | |
7930 | | - | |
| 7929 | + | |
| 7930 | + | |
7931 | 7931 | | |
7932 | 7932 | | |
7933 | 7933 | | |
| |||
0 commit comments