From 4068d64f4fb5df6a222c22281ea87d353dc6729e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Wed, 27 Apr 2016 12:55:34 +0300 Subject: [PATCH] doc: fix EventEmitter#eventNames() example Replace myErr with myEE in one place. Fix the expected output to have the actual formatting. PR-URL: https://github.com/nodejs/node/pull/6417 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Brian White --- doc/api/events.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/events.md b/doc/api/events.md index 6e74760d8f35df..f608e3e859a557 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -310,8 +310,8 @@ myEE.on('bar', () => {}); const sym = Symbol('symbol'); myEE.on(sym, () => {}); -console.log(myErr.eventNames()); - // Prints ['foo', 'bar', Symbol('symbol')] +console.log(myEE.eventNames()); + // Prints [ 'foo', 'bar', Symbol(symbol) ] ``` ### emitter.getMaxListeners()