From 96c480b1a1cdfb14723543e8b8c37f0aaa70a637 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Fri, 19 Jan 2024 13:12:16 -0300 Subject: [PATCH] doc: fix type of connectionAttempt parameter PR-URL: https://github.com/nodejs/node/pull/51490 Reviewed-By: Luigi Pinca Reviewed-By: Paolo Insogna --- doc/api/net.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.