Skip to content

Commit a1b75d0

Browse files
prog1devtargos
authored andcommitted
doc: fix dublication in net.createServer() docs
PR-URL: #24026 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent d729f3e commit a1b75d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/net.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ added: v0.7.0
886886
-->
887887
* `options` {Object}
888888
* `connectListener` {Function}
889+
889890
Alias to
890891
[`net.createConnection(options[, connectListener])`][`net.createConnection(options)`].
891892

@@ -1028,10 +1029,6 @@ then returns the `net.Socket` that starts the connection.
10281029
<!-- YAML
10291030
added: v0.5.0
10301031
-->
1031-
* `options` {Object}
1032-
* `connectionListener` {Function}
1033-
1034-
Creates a new TCP or [IPC][] server.
10351032

10361033
* `options` {Object}
10371034
* `allowHalfOpen` {boolean} Indicates whether half-opened TCP
@@ -1042,6 +1039,8 @@ Creates a new TCP or [IPC][] server.
10421039
[`'connection'`][] event.
10431040
* Returns: {net.Server}
10441041

1042+
Creates a new TCP or [IPC][] server.
1043+
10451044
If `allowHalfOpen` is set to `true`, when the other end of the socket
10461045
sends a FIN packet, the server will only send a FIN packet back when
10471046
[`socket.end()`][] is explicitly called, until then the connection is

0 commit comments

Comments
 (0)