Skip to content

Commit

Permalink
doc: include typo in 'unhandledRejection' example
Browse files Browse the repository at this point in the history
Reintroduces an intentional typo in a process doc example.

Fixes: #5644
PR-URL: #5654
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
  • Loading branch information
r1b authored and claudiorodriguez committed Mar 12, 2016
1 parent 10bc673 commit e2488fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/process.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`
```

Expand Down

1 comment on commit e2488fa

@oscarmorrison
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.