summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGaara <sabakugaara@users.noreply.github.com>2017-03-10 10:52:43 +0800
committerMyles Borins <mylesborins@google.com>2017-04-18 20:02:11 -0400
commitb8e3a5f1097f914800e8285f45a3a0588962d2b8 (patch)
treee3f1a18fb510e1fa320e0a0d4733fafc27b99d0b /doc
parent463f29413b56d85d27dad0ac02f20e7f10333866 (diff)
downloadnode-new-b8e3a5f1097f914800e8285f45a3a0588962d2b8.tar.gz
doc: fix a typo in api/process.md
Fix a mistyped module name in example REPL sessions found in the description of the 'warning' event: it should be `events` instead of `event`. PR-URL: https://github.com/nodejs/node/pull/11780 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/process.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/process.md b/doc/api/process.md
index 36930992f1..808f71a311 100644
--- a/doc/api/process.md
+++ b/doc/api/process.md
@@ -290,7 +290,7 @@ too many listeners have been added to an event
```txt
$ node
-> event.defaultMaxListeners = 1;
+> events.defaultMaxListeners = 1;
> process.on('foo', () => {});
> process.on('foo', () => {});
> (node:38638) Warning: Possible EventEmitter memory leak detected. 2 foo
@@ -303,7 +303,7 @@ adds a custom handler to the `'warning'` event:
```txt
$ node --no-warnings
> var p = process.on('warning', (warning) => console.warn('Do not do that!'));
-> event.defaultMaxListeners = 1;
+> events.defaultMaxListeners = 1;
> process.on('foo', () => {});
> process.on('foo', () => {});
> Do not do that!