diff options
author | dev-313 <shekhawat.dev313@gmail.com> | 2019-12-23 09:57:21 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-12-25 14:04:13 +0300 |
commit | 5661466921d18e04bcac766b9aea0c0f158c952e (patch) | |
tree | eb0b32f22edf5de2b6756a7ec7c563cb01b995e3 /doc | |
parent | 90f7a5c010f7f22eb73807f6401e3924fa36c700 (diff) |
doc: improve doc net:server.listen
Remove line "Common parameter of server.listen() functions."
from net:server.listen callback functions because there is no
need of this line.
PR-URL: https://github.com/nodejs/node/pull/31064
Fixes: https://github.com/nodejs/node/issues/31019
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/net.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index 7ec75e358f3..c633f937b8e 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -241,7 +241,7 @@ added: v0.5.10 * `handle` {Object} * `backlog` {number} Common parameter of [`server.listen()`][] functions -* `callback` {Function} Common parameter of [`server.listen()`][] functions +* `callback` {Function} * Returns: {net.Server} Start a server listening for connections on a given `handle` that has @@ -277,7 +277,7 @@ changes: * `ipv6Only` {boolean} For TCP servers, setting `ipv6Only` to `true` will disable dual-stack support, i.e., binding to host `::` won't make `0.0.0.0` be bound. **Default:** `false`. -* `callback` {Function} Common parameter of [`server.listen()`][] +* `callback` {Function} functions. * Returns: {net.Server} @@ -314,7 +314,7 @@ added: v0.1.90 * `path` {string} Path the server should listen to. See [Identifying paths for IPC connections][]. * `backlog` {number} Common parameter of [`server.listen()`][] functions. -* `callback` {Function} Common parameter of [`server.listen()`][] functions. +* `callback` {Function}. * Returns: {net.Server} Start an [IPC][] server listening for connections on the given `path`. @@ -327,7 +327,7 @@ added: v0.1.90 * `port` {number} * `host` {string} * `backlog` {number} Common parameter of [`server.listen()`][] functions. -* `callback` {Function} Common parameter of [`server.listen()`][] functions. +* `callback` {Function}. * Returns: {net.Server} Start a TCP server listening for connections on the given `port` and `host`. |