Skip to content

Commit 1f0a1d5

Browse files
dev-scripttargos
authored andcommitted
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: #31064 Fixes: #31019 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 15adbe8 commit 1f0a1d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/net.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ added: v0.5.10
241241

242242
* `handle` {Object}
243243
* `backlog` {number} Common parameter of [`server.listen()`][] functions
244-
* `callback` {Function} Common parameter of [`server.listen()`][] functions
244+
* `callback` {Function}
245245
* Returns: {net.Server}
246246

247247
Start a server listening for connections on a given `handle` that has
@@ -277,7 +277,7 @@ changes:
277277
* `ipv6Only` {boolean} For TCP servers, setting `ipv6Only` to `true` will
278278
disable dual-stack support, i.e., binding to host `::` won't make
279279
`0.0.0.0` be bound. **Default:** `false`.
280-
* `callback` {Function} Common parameter of [`server.listen()`][]
280+
* `callback` {Function}
281281
functions.
282282
* Returns: {net.Server}
283283

@@ -314,7 +314,7 @@ added: v0.1.90
314314
* `path` {string} Path the server should listen to. See
315315
[Identifying paths for IPC connections][].
316316
* `backlog` {number} Common parameter of [`server.listen()`][] functions.
317-
* `callback` {Function} Common parameter of [`server.listen()`][] functions.
317+
* `callback` {Function}.
318318
* Returns: {net.Server}
319319

320320
Start an [IPC][] server listening for connections on the given `path`.
@@ -327,7 +327,7 @@ added: v0.1.90
327327
* `port` {number}
328328
* `host` {string}
329329
* `backlog` {number} Common parameter of [`server.listen()`][] functions.
330-
* `callback` {Function} Common parameter of [`server.listen()`][] functions.
330+
* `callback` {Function}.
331331
* Returns: {net.Server}
332332

333333
Start a TCP server listening for connections on the given `port` and `host`.

0 commit comments

Comments
 (0)