zig/doc/langref/print.zig

11 lines
222 B
Zig
Raw Normal View History

const print = @import("std").debug.print;
const a_number: i32 = 1234;
const a_string = "foobar";
pub fn main() void {
print("here is a string: '{s}' here is a number: {}\n", .{a_string, a_number});
}
// exe=succeed