aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/print.zig
blob: 6984586322fa19f66b9dbd28ccf6888b267cf8fb (plain)
1
2
3
4
5
6
7
8
9
10
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