doc: remove redundant parameter in `end` listener.
authorAlex Yursha <alexyursha@gmail.com>
Fri, 10 Apr 2015 07:58:29 +0000 (10:58 +0300)
committerRoman Reiss <me@silverwind.io>
Sat, 11 Apr 2015 04:53:41 +0000 (06:53 +0200)
PR-URL: https://github.com/iojs/io.js/pull/1387
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
doc/api/stream.markdown

index 2d6e1da..12f9907 100644 (file)
@@ -284,7 +284,7 @@ data.
 ```javascript
 var readable = getReadableStreamSomehow();
 readable.resume();
-readable.on('end', function(chunk) {
+readable.on('end', function() {
   console.log('got to the end, but did not read anything');
 });
 ```