Skip to content

Commit

Permalink
doc: add unreachable code on events example
Browse files Browse the repository at this point in the history
PR-URL: #32364
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
himself65 authored and addaleax committed Apr 5, 2020
1 parent 4d59253 commit cee396e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ const { on, EventEmitter } = require('events');
// if concurrent execution is required.
console.log(event); // prints ['bar'] [42]
}
// Unreachable here
})();
```

Expand Down

0 comments on commit cee396e

Please sign in to comment.