aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/comments.zig
blob: be835664384d6b4afdd33c0013a2482e54eb3184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const print = @import("std").debug.print;

pub fn main() void {
    // Comments in Zig start with "//" and end at the next LF byte (end of line).
    // The line below is a comment and won't be executed.

    //print("Hello?", .{});

    print("Hello, world!\n", .{}); // another comment
}

// exe=succeed