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 standard library.
std › zig › ErrorBundle › renderToTerminal Public Function renderToTerminal Doc Source Public Function std.zig.ErrorBundle.renderToTerminal
pub fn renderToTerminal (eb : ErrorBundle , options : RenderOptions , t : Io .Terminal ) Io .Terminal .SetColorError !void Params File zig/ErrorBundle.zig: 185
185
186
187
188
189
190
191
192
193
194
195
196
197
198 pub fn renderToTerminal (eb : ErrorBundle , options : RenderOptions , t : Io .Terminal ) Io .Terminal .SetColorError !void {
if (eb .extra .len == 0 ) return ;
for (eb .getMessages ()) |err_msg | {
try renderErrorMessage (eb , options , err_msg , t , "error" , .red , 0 );
}
if (options .include_log_text ) {
const log_text = eb .getCompileLogOutput ();
if (log_text .len != 0 ) {
try t .writer .writeAll ("\nCompile Log Output:\n" );
try t .writer .writeAll (log_text );
}
}
}