Skip to content

Commit 1d40a00

Browse files
RafaelGSStargos
authored andcommitted
doc: fix type of connectionAttempt parameter
PR-URL: #51490 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
1 parent 40e8b36 commit 1d40a00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/net.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ See [`net.createConnection()`][].
697697
added: v21.6.0
698698
-->
699699

700-
* `ip` {number} The IP which the socket is attempting to connect to.
700+
* `ip` {string} The IP which the socket is attempting to connect to.
701701
* `port` {number} The port which the socket is attempting to connect to.
702702
* `family` {number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.
703703

@@ -710,7 +710,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
710710
added: v21.6.0
711711
-->
712712

713-
* `ip` {number} The IP which the socket attempted to connect to.
713+
* `ip` {string} The IP which the socket attempted to connect to.
714714
* `port` {number} The port which the socket attempted to connect to.
715715
* `family` {number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.
716716
\* `error` {Error} The error associated with the failure.
@@ -724,7 +724,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
724724
added: v21.6.0
725725
-->
726726

727-
* `ip` {number} The IP which the socket attempted to connect to.
727+
* `ip` {string} The IP which the socket attempted to connect to.
728728
* `port` {number} The port which the socket attempted to connect to.
729729
* `family` {number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.
730730

0 commit comments

Comments
 (0)