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.
fnrequireKnownTarget(m: *Module) *conststd.Target {
constresolved_target = &(m.resolved_targetorelse@panic("this API requires the Module to be created with a known 'target' field"));
return &resolved_target.result;
}