From b65c90c247aaae27a33594df121bc8a42b0a6747 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Wed, 19 Mar 2014 07:39:14 -0700 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 28dd736f7..4fd553523 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,15 @@ var stream = through(function write(data) { output += data; }); -var context = require('raptor-render-context').create(stream); +var context = require('raptor-render-context').create(stream) .on('error', function(err) { // Something went wrong during rendering }) .on('end', function() { // Value of output: "ABC" - }) - .write('A'); + }); + +context.write('A'); var asyncContext = context.beginAsync(); setTimeout(function() { @@ -34,6 +35,6 @@ setTimeout(function() { }, 1000); -context.write('C') - .end(); +context.write('C'); +context.end(); ```