From 1c2ab03b06b914f63e0acf55c480b5070c08551c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrew=20Marcinkevi=C4=8Dius?= Date: Sat, 24 Oct 2015 18:10:29 +0300 Subject: [PATCH] Fix code example --- 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 543d263dc3d799..9b2ac11e7dab29 100644 --- a/doc/api/events.markdown +++ b/doc/api/events.markdown @@ -177,7 +177,7 @@ constructor function. For example: 'use strict'; const util = require('util'); - const EventEmitter = require('events'); + const EventEmitter = require('events').EventEmitter; function MyEventEmitter() { // Initialize necessary properties from `EventEmitter` in this instance