Skip to content

Commit 40a9289

Browse files
TrottMylesBorins
authored andcommitted
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: #32457 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 6168bd5 commit 40a9289

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/events.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,9 @@ added: v0.3.5
740740

741741
By default `EventEmitter`s will print a warning if more than `10` listeners are
742742
added for a particular event. This is a useful default that helps finding
743-
memory leaks. Obviously, not all events should be limited to just 10 listeners.
744-
The `emitter.setMaxListeners()` method allows the limit to be modified for this
745-
specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`)
746-
to indicate an unlimited number of listeners.
743+
memory leaks. The `emitter.setMaxListeners()` method allows the limit to be
744+
modified for this specific `EventEmitter` instance. The value can be set to
745+
`Infinity` (or `0`) to indicate an unlimited number of listeners.
747746

748747
Returns a reference to the `EventEmitter`, so that calls can be chained.
749748

0 commit comments

Comments
 (0)