From d7111a30b7d5bcf17336463becfa4a5580817733 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 --- doc/api/events.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/events.md b/doc/api/events.md index b27c12cf557b30..b23da5a523ea40 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -912,6 +912,7 @@ const { on, EventEmitter } = require('events'); // if concurrent execution is required. console.log(event); // prints ['bar'] [42] } + // Unreachable here })(); ```