summaryrefslogtreecommitdiff
path: root/doc/api/net.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-06-01 02:07:25 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-06-03 01:56:19 +0300
commitde411a471e12aac6efcff87bd93a5e5045a70e8f (patch)
treecf111a098f4299883f0730bae89c41a2673f25f0 /doc/api/net.md
parent7de6998d899125e9d43de7dae0bb0a0ed9a76d34 (diff)
downloadandroid-node-v8-de411a471e12aac6efcff87bd93a5e5045a70e8f.tar.gz
android-node-v8-de411a471e12aac6efcff87bd93a5e5045a70e8f.tar.bz2
android-node-v8-de411a471e12aac6efcff87bd93a5e5045a70e8f.zip
doc: unify spaces in object literals
PR-URL: https://github.com/nodejs/node/pull/13354 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/net.md')
-rw-r--r--doc/api/net.md4
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])