mirror of https://github.com/nodejs/node.git
doc: net: fix typo in example code
parent
a32b8787a4
commit
fcfaa392ae
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue