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.

printStringEscaped

Prints a double quote, then escapes a string according to Zig string literal rules, then a double quote.

Writer.printStringEscaped
pub fn printStringEscaped(w: *Writer, bytes: []const u8) Error!void

File

lib/std/Io/Writer.zig:1481

Code

pub fn printStringEscaped(w: *Writer, bytes: []const u8) Error!void {
    try w.writeByte('"');
    try std.zig.stringEscape(bytes, w);
    try w.writeByte('"');
}