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 22, 2020
1 parent 4a94179 commit c3d91eb
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 @@ -887,6 +887,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 c3d91eb

Please sign in to comment.