From 1505525aa49697b8c247920ef3606057a2c5847d Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 23 Jul 2015 10:42:32 -0400 Subject: [PATCH] clean up readme a bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3171819..433ee77 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ var source = new PouchDB('http://localhost:5984/source_db'); var dest = new PouchDB('local_destination'); Promise.all([ - source(stream), + source.dump(stream), dest.load(stream) ]).then(function () { console.log('Hooray the stream replication is complete!'); @@ -238,7 +238,7 @@ Example: ``` ```js -var remoteDB = new PouchDB('my_db'); +var db = new PouchDB('my_db'); var concat = window.concatStream; @@ -247,7 +247,7 @@ var stream = concat({encoding: 'string'}, function (line) { dumpedString += line; }); -remoteDB.dump(stream).then(function () { +db.dump(stream).then(function () { console.log('Yay, I have a dumpedString: ' + dumpedString); }).catch(function (err) { console.log('oh no an error', err);