From 49c3a910c67df8e8eeb3d33d284de29439b1e0e4 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 11 Oct 2011 21:05:45 +0200 Subject: [PATCH] docs: fix typo in code snippet --- doc/api/child_processes.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/child_processes.markdown b/doc/api/child_processes.markdown index b61257b031..b081f93eb5 100644 --- a/doc/api/child_processes.markdown +++ b/doc/api/child_processes.markdown @@ -241,7 +241,7 @@ processes: process.on('message', function(m, serverHandle) { if (serverHandle) { - var server = require('child_process').createServer(); + var server = require('net').createServer(); server.listen(serverHandle); } });