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{
/// Insufficient memory or other resource internal to the operating system.SystemResources,
/// Per-process limit on the number of open file descriptors has been reached.ProcessFdQuotaExceeded,
/// System-wide limit on the total number of open files has been reached.SystemFdQuotaExceeded,
/// Local end has been shut down on a connection-oriented socket, or/// the socket was never connected.SocketUnconnected,
/// 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,
/// Network connection was unexpectedly closed by sender.ConnectionResetByPeer,
/// The local network interface used to reach the destination is offline.NetworkDown,
/// A connectionless packet was previously sent successfully,/// however, it was not received because no service is operating at/// the destination port of the transport on the remote system./// This caused an ICMP port unreachable packet to be returned to/// the OS where it was queued up to be reported at the next call/// to send or receive on the bound socket.PortUnreachable,
/// The remote peer did not respond to ongoing communication, causing the/// OS to abort the connection.ConnectionTimedOut,
} || Io.UnexpectedError