From fab1b277366049cb7ff71f9a67746cc229d948d1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 16 Dec 2022 15:19:09 +0100 Subject: [PATCH] ev::connect_tcp: improve docs --- ev/+linux/socket.ha | 3 +++ diff --git a/ev/+linux/socket.ha b/ev/+linux/socket.ha index 62163718ad7db2dce4b0dacdffd0c5b863233707..90136dc12c0330cec7b03cb0c24c1454d920ba5f 100644 --- a/ev/+linux/socket.ha +++ b/ev/+linux/socket.ha @@ -32,6 +32,9 @@ // fn connected(result: (*ev::file | net::error), user: nullable *void) void = { // let user = user: *state; // }; // +// The user data object provided will be assigned to the [[file]] which is +// 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); -- 2.48.1