Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
dfilatov committed Mar 18, 2013
1 parent 8221b90 commit 4eea092
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -253,9 +253,9 @@ Returns a promise to be fulfilled only after all items in ````promisesOrValues``
var promise1 = Vow.promise(),
promise2 = Vow.promise();

Vow.all([promise1, promise2])
Vow.all([promise1, promise2, 3])
.then(function(value) {
// value is [1, 2]
// value is [1, 2, 3]
});

promise1.fulfill(1);
Expand All @@ -266,9 +266,9 @@ or Object:
var promise1 = Vow.promise(),
promise2 = Vow.promise();

Vow.all({ a : promise1, b : promise2 })
Vow.all({ a : promise1, b : promise2, c : 3 })
.then(function(value) {
// value is { a : 1, b : 2 }
// value is { a : 1, b : 2, c : 3 }
});

promise1.fulfill(1);
Expand Down

0 comments on commit 4eea092

Please sign in to comment.