diff options
author | Gaara <sabakugaara@users.noreply.github.com> | 2017-03-10 10:52:43 +0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-03-14 17:21:57 -0700 |
commit | 27f4c9407f1b052512e2bbd8262a627ab785fa20 (patch) | |
tree | a8c81fa1dc0901e03a5559e35930322c0702984d /doc | |
parent | 73e2d0bce61410a86ab7dacf180562fcea92f69c (diff) | |
download | android-node-v8-27f4c9407f1b052512e2bbd8262a627ab785fa20.tar.gz android-node-v8-27f4c9407f1b052512e2bbd8262a627ab785fa20.tar.bz2 android-node-v8-27f4c9407f1b052512e2bbd8262a627ab785fa20.zip |
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.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/process.md b/doc/api/process.md index 0ff80980f9..2e9b655f28 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -298,7 +298,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 @@ -311,7 +311,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! |