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()