summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Steephenson <benjaminsteephenson@gmail.com>2015-03-03 09:59:07 -0500
committerJames M Snell <jasnell@gmail.com>2015-07-10 09:15:46 -0700
commitf91fa5228c6e9c02d4b492f84552423f67a0ba17 (patch)
tree53e3b0eb9164b0bf8d3b5bdb02b7097156f5eda1
parent96608335862d0330d7ee756727fb2a7827872d9b (diff)
downloadnode-f91fa5228c6e9c02d4b492f84552423f67a0ba17.tar.gz
docs:events clarify emitter.listener() behavior
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue #9022 Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/joyent/node/pull/25635
-rw-r--r--doc/api/events.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/events.markdown b/doc/api/events.markdown
index a98eb5ed3..857d5658b 100644
--- a/doc/api/events.markdown
+++ b/doc/api/events.markdown
@@ -104,7 +104,7 @@ Note that `emitter.setMaxListeners(n)` still has precedence over
### emitter.listeners(event)
-Returns an array of listeners for the specified event.
+Returns a copy of the array of listeners for the specified event.
server.on('connection', function (stream) {
console.log('someone connected!');