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.
pubconstPrctlError = error{
/// Can only occur with PR_SET_SECCOMP/SECCOMP_MODE_FILTER or/// PR_SET_MM/PR_SET_MM_EXE_FILEAccessDenied,
/// Can only occur with PR_SET_MM/PR_SET_MM_EXE_FILEInvalidFileDescriptor,
InvalidAddress,
/// Can only occur with PR_SET_SPECULATION_CTRL, PR_MPX_ENABLE_MANAGEMENT,/// or PR_MPX_DISABLE_MANAGEMENTUnsupportedFeature,
/// Can only occur with PR_SET_FP_MODEOperationUnsupported,
PermissionDenied,
} || UnexpectedError