Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed May 6, 2020
1 parent 11ae8f4 commit 74430ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/net.md
Expand Up @@ -600,9 +600,9 @@ the error passed to the [`'error'`][] listener.
The last parameter `connectListener`, if supplied, will be added as a listener
for the [`'connect'`][] event **once**.

This function should not be used for reconnecting a socket. Calling
[`socket.connect()`][] a second time leads to undefined behavior.
[`net.connect()`][] implicitly calls [`socket.connect()`][].
This function should only be used for reconnecting a socket after
`'close'` has been emitted or otherwise it may lead to undefined
behavior.

#### `socket.connect(options[, connectListener])`
<!-- YAML
Expand Down

0 comments on commit 74430ce

Please sign in to comment.