From d2ad9a2c1386d9d3618ded17cf601e980c65942c Mon Sep 17 00:00:00 2001 From: Weijia Wang <381152119@qq.com> Date: Tue, 31 Jul 2018 17:48:46 +0800 Subject: [PATCH] doc: fix return type of server.address() PR-URL: https://github.com/nodejs/node/pull/22043 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig --- doc/api/net.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index f1e41b46c47db7..5c56365b1649fa 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -112,7 +112,7 @@ Emitted when the server has been bound after calling [`server.listen()`][]. added: v0.1.90 --> -* Returns: {Object} +* Returns: {Object|string} Returns the bound `address`, the address `family` name, and `port` of the server as reported by the operating system if listening on an IP socket