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.
pubconstFunctionDefinition = externstruct {
/// The symbol-table index of the corresponding .bf (begin function) symbol record.tag_index: u32,
/// The size of the executable code for the function itself./// If the function is in its own section, the SizeOfRawData in the section header is greater or equal to this field,/// depending on alignment considerations.total_size: u32,
/// The file offset of the first COFF line-number entry for the function, or zero if none exists.pointer_to_linenumber: u32,
/// The symbol-table index of the record for the next function./// If the function is the last in the symbol table, this field is set to zero.pointer_to_next_function: u32,
unused: [2]u8,
}