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 Type Function
Span
Private Type Function
std.mem.Span
fnSpan(comptimeT: type) type
Takes a sentinel-terminated pointer and returns a slice preserving pointer attributes. [*c] pointers are assumed to be 0-terminated and assumed to not be allowzero.
Takes a sentinel-terminated pointer and returns a slice preserving pointer attributes.
[*c]pointers are assumed to be 0-terminated and assumed to not be allowzero.