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 library itself.
pubconstTCP = struct {
/// Turn off Nagle's algorithmpubconstNODELAY = 0x01;
/// Limit MSSpubconstMAXSEG = 0x02;
/// Don't push last block of writepubconstNOPUSH = 0x04;
/// Don't use TCP optionspubconstNOOPT = 0x08;
/// Idle time used when SO_KEEPALIVE is enabledpubconstKEEPALIVE = 0x10;
/// Connection timeoutpubconstCONNECTIONTIMEOUT = 0x20;
/// Time after which a conection in persist timeout will terminate.pubconstPERSIST_TIMEOUT = 0x40;
/// Time after which TCP retransmissions will be stopped and the connection will be dropped.pubconstRXT_CONNDROPTIME = 0x80;
/// Drop a connection after retransmitting the FIN 3 times.pubconstRXT_FINDROP = 0x100;
/// Interval between keepalivespubconstKEEPINTVL = 0x101;
/// Number of keepalives before clsoepubconstKEEPCNT = 0x102;
/// Always ack every other packetpubconstSENDMOREACKS = 0x103;
/// Enable ECN on a connectionpubconstENABLE_ECN = 0x104;
/// Enable/Disable TCP Fastopen on this socketpubconstFASTOPEN = 0x105;
/// State of the TCP connectionpubconstCONNECTION_INFO = 0x106;
}