We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fcda4 commit b8ca9d8Copy full SHA for b8ca9d8
1 file changed
doc/api/stream.md
@@ -3731,7 +3731,7 @@ class WriteStream extends Writable {
3731
this.fd = null;
3732
}
3733
_construct(callback) {
3734
- fs.open(this.filename, (err, fd) => {
+ fs.open(this.filename, 'w', (err, fd) => {
3735
if (err) {
3736
callback(err);
3737
} else {
0 commit comments