Skip to content

Commit

Permalink
MINOR: tidy up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
spekulatius committed Sep 22, 2020
1 parent a6465db commit 5300702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ npm install @nesk/puphpeteer

## Notable differences between PuPHPeteer and Puppeteer

### Puppeteer's class must be instanciated
### Puppeteer's class must be instantiated

Instead of requiring Puppeteer:

```js
const puppeteer = require('puppeteer');
```

You have to instanciate the `Puppeteer` class:
You have to instantiate the `Puppeteer` class:

```php
$puppeteer = new Puppeteer;
Expand Down Expand Up @@ -140,7 +140,7 @@ $pageFunction = JsFunction::createWithParameters(['element'])
->body("return element.textContent");
```

### Exceptions must be catched with `->tryCatch`
### Exceptions must be caught with `->tryCatch`

If an error occurs in Node, a `Node\FatalException` will be thrown and the process closed, you will have to create a new instance of `Puppeteer`.

Expand Down

0 comments on commit 5300702

Please sign in to comment.