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 b815909 commit c78f832Copy full SHA for c78f832
doc/api/stream.md
@@ -3715,7 +3715,7 @@ class WriteStream extends Writable {
3715
this.fd = null;
3716
}
3717
_construct(callback) {
3718
- fs.open(this.filename, (err, fd) => {
+ fs.open(this.filename, 'w', (err, fd) => {
3719
if (err) {
3720
callback(err);
3721
} else {
0 commit comments