doc: include typo in 'unhandledRejection' example
authorRobert C Jensen <robert.cole.jensen@gmail.com>
Fri, 11 Mar 2016 02:33:40 +0000 (21:33 -0500)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 20:07:04 +0000 (13:07 -0700)
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>
doc/api/process.markdown

index c243b0f..7557f36 100644 (file)
@@ -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`
 ```