diff --git a/lib/kernel/src/socket.erl b/lib/kernel/src/socket.erl index 44b0c40f5d56..973a05047d6d 100644 --- a/lib/kernel/src/socket.erl +++ b/lib/kernel/src/socket.erl @@ -3763,7 +3763,9 @@ an explanation of `TimeoutOrHandle`. """. -spec sendto(Socket :: socket(), Data :: iodata(), - Dest :: sockaddr(), Flags :: list()) -> Result when + Dest :: sockaddr(), Flags | TimeoutOrHandle) -> Result when + TimeoutOrHandle :: dynamic(), + Flags :: list(), Result :: 'ok' | {'ok', RestData :: binary()} | {'error', Reason}