From c3d91eb94d99508bdea597798cd30b579e80612b Mon Sep 17 00:00:00 2001 From: himself65 Date: Thu, 19 Mar 2020 22:19:46 +0800 Subject: [PATCH] doc: add unreachable code on events example PR-URL: https://github.com/nodejs/node/pull/32364 Reviewed-By: Anna Henningsen --- doc/api/events.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/events.md b/doc/api/events.md index d14004f48493bb..854150de3a4982 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -887,6 +887,7 @@ const { on, EventEmitter } = require('events'); // if concurrent execution is required. console.log(event); // prints ['bar'] [42] } + // Unreachable here })(); ```