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 <[email protected]>
  • Loading branch information
himself65 authored and targos committed Apr 11, 2020
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
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 b567a63

Please sign in to comment.