Strings In Depth7 / 19
Up next

Multiline strings

const std = @import("std");

pub fn main() void {
    // each \\ line contributes one line plus a newline
    const poem =
        \\roses are red
        \\zig is fast
    ;
    std.debug.print("{s}\n", .{poem});
}
What you're solving

\\ lines build a literal with newlines