Skip to content

Commit 8d27eb9

Browse files
Trotttargos
authored andcommittedApr 22, 2020
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 <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent 1c84d85 commit 8d27eb9

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
@@ -715,10 +715,9 @@ added: v0.3.5
715715

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

723722
Returns a reference to the `EventEmitter`, so that calls can be chained.
724723

0 commit comments

Comments
 (0)
Please sign in to comment.