diff --git a/doc/api/events.markdown b/doc/api/events.markdown index bd227a34db5b35..6c794801f8bf44 100644 --- a/doc/api/events.markdown +++ b/doc/api/events.markdown @@ -23,7 +23,7 @@ attached to. Use `require('events')` to access the EventEmitter class. ```javascript -var EventEmitter = require('events'); +var EventEmitter = require('events').EventEmitter; ``` When an `EventEmitter` instance experiences an error, the typical action is