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 <[email protected]>
PR-URL: #62208
Reviewed-By: René <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>1 parent c970137 commit cf68a9f
1 file changed
Lines changed: 4 additions & 4 deletions
| 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