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.
pubconstthread_basic_info = externstruct {
// user run timeuser_time: time_value_t,
// system run timesystem_time: time_value_t,
// scaled cpu usage percentagecpu_usage: integer_t,
// scheduling policy in effectpolicy: policy_t,
// run staterun_state: integer_t,
// various flagsflags: integer_t,
// suspend count for threadsuspend_count: integer_t,
// number of seconds that thread has been sleepingsleep_time: integer_t,
}