diff options
author | Rich Trott <rtrott@gmail.com> | 2020-03-24 16:26:10 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-03-26 17:23:33 +0300 |
commit | 498415b4abd879a81333f48123cc31ca8f32b6f5 (patch) | |
tree | 3d90576129c2eb5f5fe71eff486d2d51f6476cc9 /doc/api | |
parent | 7e4381318b3d4dacc6ed7c050ba8d00e3546a2f7 (diff) |
doc: remove extraneous sentence in events.md
Since the previous sentence describes `10` as a default, and the
following sentence explains how to modify that default, it is
unnecessary to explain that "Obviously, not all events should be limited
to just 10 listeners."
PR-URL: https://github.com/nodejs/node/pull/32457
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/events.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/events.md b/doc/api/events.md index 750473aa4c5..b27c12cf557 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -740,10 +740,9 @@ added: v0.3.5 By default `EventEmitter`s will print a warning if more than `10` listeners are added for a particular event. This is a useful default that helps finding -memory leaks. Obviously, not all events should be limited to just 10 listeners. -The `emitter.setMaxListeners()` method allows the limit to be modified for this -specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) -to indicate an unlimited number of listeners. +memory leaks. The `emitter.setMaxListeners()` method allows the limit to be +modified for this specific `EventEmitter` instance. The value can be set to +`Infinity` (or `0`) to indicate an unlimited number of listeners. Returns a reference to the `EventEmitter`, so that calls can be chained. |