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 standard library. Private Function
fnfancyFnExprExtraLen(astgen: *AstGen, param_refs_body: []constZir.Inst.Index, main_body: []constZir.Inst.Index, ref: Zir.Inst.Ref) u32 {
returncountBodyLenAfterFixups(astgen, param_refs_body) +
countBodyLenAfterFixups(astgen, main_body) +
// If there is a body, we need an element for its length; otherwise, if there is a ref, we need to include that.@intFromBool(main_body.len > 0orref != .none);
}