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.
pubconstTos = externstruct {
/// Per process profilingprof: externstruct {
/// known to be 0(ptr)pp: *Plink,
/// known to be 4(ptr)next: *Plink,
last: *Plink,
first: *Plink,
pid: u32,
what: u32,
},
/// cycle clock frequency if there is one, 0 otherwisecyclefreq: u64,
/// cycles spent in kernelkcycles: i64,
/// cycles spent in process (kernel + user)pcycles: i64,
/// might as well put the pid herepid: u32,
clock: u32,
// top of stack is here
}