diff --git a/doc/api/events.md b/doc/api/events.md index 52161a323ce246..42433f6299f949 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -1194,7 +1194,7 @@ const ee2 = new EventEmitter(); // 'foo' listeners on ordinary EventEmitters that do not track async // context, however, run in the same async context as the emit(). -ee1.on('foo', () => { +ee2.on('foo', () => { notStrictEqual(executionAsyncId(), ee2.asyncId()); notStrictEqual(triggerAsyncId(), ee2.triggerAsyncId()); });