about summary refs log tree commit diff
path: root/lang/zig/comments.zig
blob: 3d1c2e2cc4d7b342ccd2fc0aabc96f00d23784a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
const expect = @import("std").testing.expect;

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

    //expect(false);

    const x = true;  // another comment
    expect(x);
}