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
This function is intended to be used only in tests. When the two slices or two arrays are not equal, or their sentinel (if any) are not the same, it prints diagnostics to stderr to show exactly how they are not equal (with the differences highlighted in red), then returns a test failure error. It partially depends on expectEquaSlices for printing diagnostics.
This function is intended to be used only in tests. When the two slices or two arrays are not equal, or their sentinel (if any) are not the same, it prints diagnostics to stderr to show exactly how they are not equal (with the differences highlighted in red), then returns a test failure error. It partially depends on
expectEquaSlicesfor printing diagnostics.