From 4d1abfd0631332e50b3fbbccf6472f8d05e79c20 Mon Sep 17 00:00:00 2001 From: Brian White Date: Sat, 13 Feb 2016 15:40:00 -0500 Subject: [PATCH] doc: fix net.createConnection() example PR-URL: https://github.com/nodejs/node/pull/5219 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- doc/api/net.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/net.markdown b/doc/api/net.markdown index 2f41a0dfabcca9..ecd4117f3441a2 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -583,7 +583,7 @@ Here is an example of a client of the previously described echo server: ```js const net = require('net'); -const client = net.connect({port: 8124}, () => { +const client = net.createConnection({port: 8124}, () => { //'connect' listener console.log('connected to server!'); client.write('world!\r\n');