Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 8221b90 commit 4eea0925eb2f4fbdc074e4ad1915304cd3770f7f @dfilatov committed Mar 18, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -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);
@@ -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);

0 comments on commit 4eea092

Please sign in to comment.