Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: "finish" event is on the writable stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Farrell authored and tjfontaine committed Dec 12, 2013
1 parent 910bc3c commit 04d5227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ for (var i = 0; i < 100; i ++) {
writer.write('hello, #' + i + '!\n');
}
writer.end('this is the end\n');
write.on('finish', function() {
writer.on('finish', function() {
console.error('all writes are now complete.');
});
```
Expand Down

0 comments on commit 04d5227

Please sign in to comment.