summaryrefslogtreecommitdiff
path: root/doc/api/net.md
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-11-03 19:51:54 +0100
committerRich Trott <rtrott@gmail.com>2018-11-04 00:20:34 -0700
commitbb254578a65b2c9ab7274d373603327f71da7dcc (patch)
tree6d9297549b0a266b4652e26cc8f6c42775e725b9 /doc/api/net.md
parent472a3d890bcd1c6799658d72bb813626a16d0adc (diff)
downloadandroid-node-v8-bb254578a65b2c9ab7274d373603327f71da7dcc.tar.gz
android-node-v8-bb254578a65b2c9ab7274d373603327f71da7dcc.tar.bz2
android-node-v8-bb254578a65b2c9ab7274d373603327f71da7dcc.zip
doc: fix socket.connecting description
In particular, this value is `true` and not `false` between calling `connect()` and the operation finishing. PR-URL: https://github.com/nodejs/node/pull/24066 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@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 a8cd321dca..1b495da81c 100644
--- a/doc/api/net.md
+++ b/doc/api/net.md
@@ -658,9 +658,9 @@ called with `{port: port, host: host}` as `options`.
added: v6.1.0
-->
-If `true` -
+If `true`,
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]
-was called and haven't yet finished. Will be set to `false` before emitting
+was called and has not yet finished. Will be set to `true` before emitting
`'connect'` event and/or calling
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]'s
callback.