From 79c7b8d3e30abb976f1c4da4524e81f7c7085dce Mon Sep 17 00:00:00 2001 From: Daniel Gerber Date: Wed, 16 Sep 2015 10:26:04 +0200 Subject: [PATCH] Fix code example in events API docs --- doc/api/events.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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