Skip to content

Commit 96c480b

Browse files
RafaelGSSrichardlau
authored andcommitted
doc: fix type of connectionAttempt parameter
PR-URL: #51490 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
1 parent ca73f55 commit 96c480b

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
@@ -690,7 +690,7 @@ See [`net.createConnection()`][].
690690
added: REPLACEME
691691
-->
692692

693-
*`ip`{number} The IP which the socket is attempting to connect to.
693+
*`ip`{string} The IP which the socket is attempting to connect to.
694694
*`port`{number} The port which the socket is attempting to connect to.
695695
*`family`{number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.
696696

@@ -703,7 +703,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
703703
added: REPLACEME
704704
-->
705705

706-
*`ip`{number} The IP which the socket attempted to connect to.
706+
*`ip`{string} The IP which the socket attempted to connect to.
707707
*`port`{number} The port which the socket attempted to connect to.
708708
*`family`{number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.
709709
\*`error`{Error} The error associated with the failure.
@@ -717,7 +717,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][
717717
added: REPLACEME
718718
-->
719719

720-
*`ip`{number} The IP which the socket attempted to connect to.
720+
*`ip`{string} The IP which the socket attempted to connect to.
721721
*`port`{number} The port which the socket attempted to connect to.
722722
*`family`{number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.
723723

0 commit comments

Comments
(0)