This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Constant
pubconstError = error{
/// The socket type requires that message be sent atomically, and the/// size of the message to be sent made this impossible. The message/// was not transmitted, or was partially transmitted.MessageOversize,
/// The output queue for a network interface was full. This generally indicates that the/// interface has stopped sending, but may be caused by transient congestion. (Normally,/// this does not occur in Linux. Packets are just silently dropped when a device queue/// overflows.)////// This is also caused when there is not enough kernel memory available.SystemResources,
/// No route to network.NetworkUnreachable,
/// Network reached but no route to host.HostUnreachable,
/// The local network interface used to reach the destination is offline.NetworkDown,
/// The destination address is not listening. Can still occur for/// connectionless messages.ConnectionRefused,
/// Operating system or protocol does not support the address family.AddressFamilyUnsupported,
/// Another TCP Fast Open is already in progress.FastOpenAlreadyInProgress,
/// Network session was unexpectedly closed by recipient.ConnectionResetByPeer,
/// Local end has been shut down on a connection-oriented socket, or/// the socket was never connected.SocketUnconnected,
/// An attempt was made to send to a network/broadcast address as/// though it was a unicast address.AccessDenied,
/// The remote peer did not respond to ongoing communication, causing the/// OS to abort the connection.ConnectionTimedOut,
} || Io.UnexpectedError