Skip to content

Commit

Permalink
chore(docs): fix console example in docs/api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Oct 6, 2017
1 parent d3976cb commit 59bcc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Expand Up @@ -266,7 +266,7 @@ An example of handling `console` event:
```js
page.on('console', msg => {
for (let i = 0; i < msg.args.length; ++i)
console.log(`${i}: ${args[i]}`);
console.log(`${i}: ${msg.args[i]}`);
});
page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
```
Expand Down

0 comments on commit 59bcc2e

Please sign in to comment.