Zig 0.17.0-dev (Split by item)

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.

stringCmp

Fetch.stringCmp
fn stringCmp(_: void, lhs: ScannedFile, rhs: ScannedFile) bool

File

lib/compiler/Maker/Fetch.zig:490

Code

fn stringCmp(_: void, lhs: ScannedFile, rhs: ScannedFile) bool {
    return std.mem.lessThan(u8, lhs.ptr[0..lhs.len], rhs.ptr[0..rhs.len]);
}