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. Public Function
Allocates an array of n + 1 items of type T and sets the first n items to undefined and the last item to sentinel. Depending on the Allocator implementation, it may be required to call free once the memory is no longer needed, to avoid a resource leak. If the Allocator implementation is unknown, then correct code will call free when done.
Allocates an array of
n + 1items of typeTand sets the firstnitems toundefinedand the last item tosentinel. Depending on the Allocator implementation, it may be required to callfreeonce the memory is no longer needed, to avoid a resource leak. If theAllocatorimplementation is unknown, then correct code will callfreewhen done.For allocating a single item, see
create.