diff --git a/doc/api/net.md b/doc/api/net.md index 3a9d078f64484f..12966cbaee30db 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -690,7 +690,7 @@ See [`net.createConnection()`][]. added: REPLACEME --> -* `ip` {number} The IP which the socket is attempting to connect to. +* `ip` {string} The IP which the socket is attempting to connect to. * `port` {number} The port which the socket is attempting to connect to. * `family` {number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4. @@ -703,7 +703,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][ added: REPLACEME --> -* `ip` {number} The IP which the socket attempted to connect to. +* `ip` {string} The IP which the socket attempted to connect to. * `port` {number} The port which the socket attempted to connect to. * `family` {number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4. \* `error` {Error} The error associated with the failure. @@ -717,7 +717,7 @@ if the family autoselection algorithm is enabled in [`socket.connect(options)`][ added: REPLACEME --> -* `ip` {number} The IP which the socket attempted to connect to. +* `ip` {string} The IP which the socket attempted to connect to. * `port` {number} The port which the socket attempted to connect to. * `family` {number} The family of the IP. It can be `6` for IPv6 or `4` for IPv4.