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 targos committed Apr 11, 2020

Verified

This commit was signed with the committer’s verified signature. The key has expired.
BridgeAR Ruben Bridgewater
1 parent 567e671 commit b567a63
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
@@ -912,6 +912,7 @@ const { on, EventEmitter } = require('events');
// if concurrent execution is required.
console.log(event); // prints ['bar'] [42]
}
// Unreachable here
})();
```

0 comments on commit b567a63

Please sign in to comment.