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.
exportfntype_fn_members(parent: Decl.Index, include_private: bool) Slice(Decl.Index) {
constdecl = parent.get();
// If the type function returns another type function, get the members of that functionif (decl.get_type_fn_return_type_fn()) |function_decl| {
returnnamespace_members(function_decl, include_private);
}
returnnamespace_members(parent, include_private);
}