From 93764e6bef25d4d90f644a96fc44ba9db89955d0 Mon Sep 17 00:00:00 2001 From: Anne-Gaelle Colom Date: Wed, 9 Sep 2015 11:40:46 +0100 Subject: [PATCH 1/2] Docs: Used 3rd person singular for consistency --- doc/api/events.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/events.markdown b/doc/api/events.markdown index b9501632b205be..efc2c7c5d517f3 100644 --- a/doc/api/events.markdown +++ b/doc/api/events.markdown @@ -62,7 +62,7 @@ Returns emitter, so calls can be chained. ### emitter.removeListener(event, listener) -Remove a listener from the listener array for the specified event. +Removes a listener from the listener array for the specified event. **Caution**: changes array indices in the listener array behind the listener. var callback = function(stream) { From 6a7df55c4d6c18ec46f83bcc8434278abce111f5 Mon Sep 17 00:00:00 2001 From: Anne-Gaelle Colom Date: Wed, 9 Sep 2015 21:40:52 +0100 Subject: [PATCH 2/2] Update events.markdown --- doc/api/events.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/events.markdown b/doc/api/events.markdown index efc2c7c5d517f3..75571c729bfaf9 100644 --- a/doc/api/events.markdown +++ b/doc/api/events.markdown @@ -132,7 +132,7 @@ Returns a copy of the array of listeners for the specified event. ### emitter.emit(event[, arg1][, arg2][, ...]) -Execute each of the listeners in order with the supplied arguments. +Executes each of the listeners in order with the supplied arguments. Returns `true` if event had listeners, `false` otherwise.