Skip to content

Commit f0f28e0

Browse files
committed
Typo in parameter's name
Hello, There were a typo in documentation, the listener of "createConnection" is listening to "connect" event. "connectionListener" name is so, a bad name because "connectionListener" for createServer() is listening to "connection" event ;) Regards, Peekmo
1 parent e8df267 commit f0f28e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/net.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Use `nc` to connect to a UNIX domain socket server:
5050

5151
nc -U /tmp/echo.sock
5252

53-
## net.connect(options, [connectionListener])
54-
## net.createConnection(options, [connectionListener])
53+
## net.connect(options, [connectListener])
54+
## net.createConnection(options, [connectListener])
5555

5656
Constructs a new socket object and opens the socket to the given location.
5757
When the socket is established, the ['connect'][] event will be emitted.

0 commit comments

Comments
 (0)