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.

renderErrorMessageToStderr

utils.renderErrorMessageToStderr
pub fn renderErrorMessageToStderr(io: std.Io, msg_type: ErrorMessageType, comptime format: []const u8, args: anytype) !void

File

Code

pub fn renderErrorMessageToStderr(io: std.Io, msg_type: ErrorMessageType, comptime format: []const u8, args: anytype) !void {
    var stderr = try io.lockStderr(&.{}, null);
    defer io.unlockStderr();
    try renderErrorMessage(stderr.terminal(), msg_type, format, args);
}