Commit cf68a9f
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 c970137 commit cf68a9f
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7138 | 7138 | | |
7139 | 7139 | | |
7140 | 7140 | | |
7141 | | - | |
7142 | | - | |
| 7141 | + | |
| 7142 | + | |
7143 | 7143 | | |
7144 | 7144 | | |
7145 | 7145 | | |
| |||
7909 | 7909 | | |
7910 | 7910 | | |
7911 | 7911 | | |
7912 | | - | |
7913 | | - | |
| 7912 | + | |
| 7913 | + | |
7914 | 7914 | | |
7915 | 7915 | | |
7916 | 7916 | | |
| |||
0 commit comments