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.
pubconstmach_task_basic_info = externstruct {
/// Virtual memory size (bytes)virtual_size: mach_vm_size_t,
/// Resident memory size (bytes)resident_size: mach_vm_size_t,
/// Total user run time for terminated threadsuser_time: time_value_t,
/// Total system run time for terminated threadssystem_time: time_value_t,
/// Default policy for new threadspolicy: policy_t,
/// Suspend count for tasksuspend_count: mach_vm_size_t,
}