From 847b15462b781b7a08ea2515df701fea24ba0b26 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Wed, 9 Apr 2014 17:56:34 +0200 Subject: [PATCH] next should be callback. fixes #15 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e79b03..7ae980a 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ extract.on('entry', function(header, stream, callback) { stream.resume(); // just auto drain the stream stream.on('end', function() { - next(); // ready for next entry + callback(); // ready for next entry }); });