diff options
Diffstat (limited to 'doc/api/net.md')
-rw-r--r-- | doc/api/net.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index 982a5a0aeb..fc0ea4cc12 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -884,7 +884,7 @@ in the [`net.createServer()`][] section: ```js const net = require('net'); -const client = net.createConnection({port: 8124}, () => { +const client = net.createConnection({ port: 8124 }, () => { //'connect' listener console.log('connected to server!'); client.write('world!\r\n'); @@ -902,7 +902,7 @@ To connect on the socket `/tmp/echo.sock` the second line would just be changed to ```js -const client = net.createConnection({path: '/tmp/echo.sock'}); +const client = net.createConnection({ path: '/tmp/echo.sock' }); ``` ### net.createConnection(path[, connectListener]) |