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 are not equal, 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.
This function is intended to be used only in tests. When the two slices are not equal, 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.