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.
pubconstvm_prot_t = packedstruct(u32) {
READ: bool = false,
WRITE: bool = false,
EXEC: bool = false,
_: u1 = 0,
/// When a caller finds that they cannot obtain write permission on a/// mapped entry, the following flag can be used. The entry will be/// made "needs copy" effectively copying the object (using COW),/// and write permission will be added to the maximum protections for/// the associated entry.COPY: bool = false,
__: u27 = 0,
}