From 148d66e22dfccb49353980c4b0fe0444c9260632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?= Date: Fri, 26 Aug 2016 10:22:06 +0200 Subject: [PATCH] Fix typo in promise_rejects example The promise_rejects function expects a Promise as third argument, not a function. The "bar" function needs to be called. --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 441892dc5a5794..980f4246ce55d0 100644 --- a/docs/api.md +++ b/docs/api.md @@ -202,7 +202,7 @@ function bar() { } promise_test(function(t) { - return promise_rejects(t, new TypeError(), bar); + return promise_rejects(t, new TypeError(), bar()); }, "Another example"); ```