Browse Source

doc: "finish" event is on the writable stream

v0.10.23-release
Gabriel Farrell 11 years ago
committed by Timothy J Fontaine
parent
commit
04d52270b6
  1. 2
      doc/api/stream.markdown

2
doc/api/stream.markdown

@ -537,7 +537,7 @@ for (var i = 0; i < 100; i ++) {
writer.write('hello, #' + i + '!\n'); writer.write('hello, #' + i + '!\n');
} }
writer.end('this is the end\n'); writer.end('this is the end\n');
write.on('finish', function() { writer.on('finish', function() {
console.error('all writes are now complete.'); console.error('all writes are now complete.');
}); });
``` ```

Loading…
Cancel
Save