Skip to content

Commit 46d28f5

Browse files
committed
doc: fix type of connectionAttempt parameter
1 parent e133e51 commit 46d28f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/net.md

Lines changed: 3 additions & 3 deletions
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)