Skip to content

Commit

Permalink
doc: remove an unused arg in process.stdin.
Browse files Browse the repository at this point in the history
The argument of process.stdin's readable event handler is not used.
  • Loading branch information
shuhei authored and tjfontaine committed Mar 10, 2014
1 parent f0d8705 commit 43a29f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/process.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Example of opening standard input and listening for both events:

process.stdin.setEncoding('utf8');

process.stdin.on('readable', function(chunk) {
process.stdin.on('readable', function() {
var chunk = process.stdin.read();
if (chunk !== null) {
process.stdout.write('data: ' + chunk);
Expand Down

0 comments on commit 43a29f5

Please sign in to comment.