From e3c3f7613c602672ac41a3e47c106a5bd27a2378 Mon Sep 17 00:00:00 2001 From: Alexey Yerin <yyp@disroot.org> Date: Fri, 01 Dec 2023 22:13:29 +0300 Subject: [PATCH] Correct documentation for connect_{tcp,unix} After saying that user data can be omitted, it should be actually omitted in the example. --- ev/+linux/socket.ha | 4 ++-- diff --git a/ev/+linux/socket.ha b/ev/+linux/socket.ha index ef7b3f6401f27bb5817c54a9ecaaa2f7c8eb5d5a..6df05ef98686796f842355e4bbec93fd576e4b42 100644 --- a/ev/+linux/socket.ha +++ b/ev/+linux/socket.ha @@ -74,7 +74,7 @@ // provided to the callback after the connection is established. // // If you don't need a user data object you can just omit it: // -// ev::connect_tcp(&loop, &connected, addr, port, &user); +// ev::connect_tcp(&loop, &connected, addr, port); export fn connect_tcp( loop: *loop, cb: *connectcb, @@ -122,7 +122,7 @@ // provided to the callback after the connection is established. // // If you don't need a user data object you can just omit it: // -// ev::connect_unix(&loop, &connected, addr, &user); +// ev::connect_unix(&loop, &connected, addr); export fn connect_unix( loop: *loop, cb: *connectcb, -- 2.48.1