From a39d96eae9703c3e7ef06f1876fba858baff3045 Mon Sep 17 00:00:00 2001 From: Bamboo Date: Thu, 25 Jan 2018 13:09:37 +0800 Subject: [PATCH] docs(api.md): fix sample code in API doc, `request.url` -> `request.url()` (#1889) --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index ee85e3d7..89d24bf0 100644 --- a/docs/api.md +++ b/docs/api.md @@ -2156,7 +2156,7 @@ Example of logging all failed requests: ```js page.on('requestfailed', request => { - console.log(request.url + ' ' + request.failure().errorText); + console.log(request.url() + ' ' + request.failure().errorText); }); ```