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_region_submap_short_info_64 = externstruct {
// present access protectionprotection: vm_prot_t,
// max avail through vm_protmax_protection: vm_prot_t,
// behavior of map/obj on forkinheritance: vm_inherit_t,
// offset into object/mapoffset: memory_object_offset_t,
// user tag on map entryuser_tag: u32,
// obj/map mappers, etcref_count: u32,
// only for objshadow_depth: u16,
// only for objexternal_pager: u8,
// see enumerationshare_mode: u8,
// submap vs objis_submap: boolean_t,
// access behavior hintbehavior: vm_behavior_t,
// obj/map name, not a handleobject_id: vm32_object_id_t,
user_wired_count: u16,
}