diff --git a/doc/api/stream.markdown b/doc/api/stream.markdown index 5ea3e3d0801..7b522639602 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.'); }); ```