Skip to content

Commit

Permalink
Fix end() function in though2
Browse files Browse the repository at this point in the history
  • Loading branch information
haio committed Mar 2, 2015
1 parent 235ee96 commit 042d947
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion problems/http_server/problem.txt
Expand Up @@ -51,7 +51,7 @@ defined:
this.push(buf);
next();
}
function end () { this.push(null) }
function end (done) { done(); }

Do that, but send upper-case data in your http server in response to POST data.

Expand Down
6 changes: 3 additions & 3 deletions problems/transform/problem.txt
Expand Up @@ -33,10 +33,10 @@ Inside the write function, call `this.push()` to produce output data and call
next();
}

and call `this.push(null)` to finish the output:
and call `done()` to finish the output:

function end () {
this.push(null);
function end (done) {
done();
}

`write` and `end` are both optional.
Expand Down

0 comments on commit 042d947

Please sign in to comment.