From 2fb4b6bf4e74c7674b416dfd7462ff8894dd3142 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Sat, 21 Dec 2013 03:35:14 +0100 Subject: [PATCH] callback is called next --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a76418c..0777c83 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ var extract = tar.extract(); extract.on('entry', function(header, stream, callback) { // header is the tar header // stream is the content body (might be an empty stream) - // call callback when you are done with this entry + // call next when you are done with this entry stream.resume(); // just auto drain the stream stream.on('end', function() { - callback(); // ready for next entry + next(); // ready for next entry }); });