doc: include typo in 'unhandledRejection' example
Reintroduces an intentional typo in a process doc example. Fixes: https://github.com/nodejs/node/issues/5644 PR-URL: https://github.com/nodejs/node/pull/5654 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
parent
10bc673123
commit
e2488fa953
@ -163,7 +163,7 @@ event:
|
||||
|
||||
```js
|
||||
somePromise.then((res) => {
|
||||
return reportToUser(JSON.parse(res)); // note the typo
|
||||
return reportToUser(JSON.pasre(res)); // note the typo (`pasre`)
|
||||
}); // no `.catch` or `.then`
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user