doc: net: fix typo in example code

archived-io.js-v0.10
Yazhong Liu 2013-11-30 00:44:13 +08:00 committed by Ben Noordhuis
parent a32b8787a4
commit fcfaa392ae
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ Here is an example of a client of echo server as described previously:
To connect on the socket `/tmp/echo.sock` the second line would just be
changed to
var client = net.connect({path: '/tmp/echo.sock'},
var client = net.connect({path: '/tmp/echo.sock'});
## net.connect(port, [host], [connectListener])
## net.createConnection(port, [host], [connectListener])