Skip to content

Commit

Permalink
clean up readme a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Jul 23, 2015
1 parent 4b0c9ae commit 1505525
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down Expand Up @@ -238,7 +238,7 @@ Example:
```

```js
var remoteDB = new PouchDB('my_db');
var db = new PouchDB('my_db');

var concat = window.concatStream;

Expand All @@ -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);
Expand Down

0 comments on commit 1505525

Please sign in to comment.