Fix typo in ERROR-HANDLING.md:required -> require (#898)

This commit is contained in:
bbodela 2020-07-12 21:08:34 +09:00 committed by GitHub
parent 8fed3137f8
commit ca50c22e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ The basics:
- A cancelled request is rejected with an [`AbortError`](https://github.com/node-fetch/node-fetch/blob/master/README.md#class-aborterror). You can check if the reason for rejection was that the request was aborted by checking the `Error`'s `name` is `AbortError`.
```js
const fetch = required('node-fetch');
const fetch = require('node-fetch');
(async () => {
try {