Skip to content

Commit

Permalink
doc: add unreachable code on events example
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Mar 30, 2020
1 parent 768b0f5 commit d7111a3
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 d7111a3

Please sign in to comment.