doc: fix return value for uv_pipe_connect2

It was incorrectly documented as returning void since its addition, but it
returns int.
This commit is contained in:
Sean Dewar 2025-07-28 10:08:54 +01:00 committed by Saúl Ibarra Corretgé
parent 6cf854c11b
commit aee30bd8d0

View File

@ -94,7 +94,7 @@ API
Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes, Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
typically between 92 and 108 bytes. typically between 92 and 108 bytes.
.. c:function:: void uv_pipe_connect2(uv_connect_t* req, uv_pipe_t* handle, const char* name, size_t namelen, unsigned int flags, uv_connect_cb cb) .. c:function:: int uv_pipe_connect2(uv_connect_t* req, uv_pipe_t* handle, const char* name, size_t namelen, unsigned int flags, uv_connect_cb cb)
Connect to the Unix domain socket or the Windows named pipe. Connect to the Unix domain socket or the Windows named pipe.