From 04d52270b6a71256a89c20b8994c9de8d3bca532 Mon Sep 17 00:00:00 2001 From: Gabriel Farrell Date: Wed, 11 Dec 2013 10:14:10 -0500 Subject: [PATCH] doc: "finish" event is on the writable stream --- doc/api/stream.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.markdown b/doc/api/stream.markdown index 5ea3e3d080..7b52263960 100644 --- a/doc/api/stream.markdown +++ b/doc/api/stream.markdown @@ -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.'); }); ```