diff --git a/doc/api/net.md b/doc/api/net.md index d3eb8ed7c7a7d2..de2933bbc43c4c 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1099,7 +1099,7 @@ added: REPLACEME Close the TCP connection by sending an RST packet and destroy the stream. If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected. -Otherwise, it will call `socket.destroy` this socket with an `ERR_SOCKET_CLOSED` Error. +Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error. ### `socket.resume()`