Skip to content

Commit 520ef83

Browse files
Trotttargos
authored andcommitted
doc: remove "note that" from events.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent d65c90b commit 520ef83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/events.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ change affects *all* `EventEmitter` instances, including those created before
261261
the change is made. However, calling [`emitter.setMaxListeners(n)`][] still has
262262
precedence over `EventEmitter.defaultMaxListeners`.
263263

264-
Note that this is not a hard limit. The `EventEmitter` instance will allow
264+
This is not a hard limit. The `EventEmitter` instance will allow
265265
more listeners to be added but will output a trace warning to stderr indicating
266266
that a "possible EventEmitter memory leak" has been detected. For any single
267267
`EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()`
@@ -508,7 +508,7 @@ added: v0.1.26
508508

509509
Removes all listeners, or those of the specified `eventName`.
510510

511-
Note that it is bad practice to remove listeners added elsewhere in the code,
511+
It is bad practice to remove listeners added elsewhere in the code,
512512
particularly when the `EventEmitter` instance was created by some other
513513
component or module (e.g. sockets or file streams).
514514

@@ -539,7 +539,7 @@ listener array. If any single listener has been added multiple times to the
539539
listener array for the specified `eventName`, then `removeListener()` must be
540540
called multiple times to remove each instance.
541541

542-
Note that once an event has been emitted, all listeners attached to it at the
542+
Once an event has been emitted, all listeners attached to it at the
543543
time of emitting will be called in order. This implies that any
544544
`removeListener()` or `removeAllListeners()` calls *after* emitting and
545545
*before* the last listener finishes execution will not remove them from

0 commit comments

Comments
 (0)