Skip to content

Commit 94f7394

Browse files
addaleaxtargos
authored andcommitted
doc: fix socket.connecting description
In particular, this value is `true` and not `false` between calling `connect()` and the operation finishing. PR-URL: #24066 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent fa84164 commit 94f7394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/net.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,9 @@ called with `{port: port, host: host}` as `options`.
658658
added: v6.1.0
659659
-->
660660

661-
If `true` -
661+
If `true`,
662662
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]
663-
was called and haven't yet finished. Will be set to `false` before emitting
663+
was called and has not yet finished. Will be set to `true` before emitting
664664
`'connect'` event and/or calling
665665
[`socket.connect(options[, connectListener])`][`socket.connect(options)`]'s
666666
callback.

0 commit comments

Comments
 (0)