From b99baaf8a294bdef359006c8897b09dbdf7b08eb 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 899f5d734674e4..20e06d1635d50f 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -578,7 +578,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');