Skip to content

Commit

Permalink
Typo in parameter's name
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Peekmo committed Feb 13, 2014
1 parent e8df267 commit f0f28e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/net.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Use `nc` to connect to a UNIX domain socket server:

nc -U /tmp/echo.sock

## net.connect(options, [connectionListener])
## net.createConnection(options, [connectionListener])
## net.connect(options, [connectListener])
## net.createConnection(options, [connectListener])

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

0 comments on commit f0f28e0

Please sign in to comment.