comments.zig (306B) - Raw
1 const print = @import("std").debug.print; 2 3 pub fn main() void { 4 // Comments in Zig start with "//" and end at the next LF byte (end of line). 5 // The line below is a comment and won't be executed. 6 7 //print("Hello?", .{}); 8 9 print("Hello, world!\n", .{}); // another comment 10 } 11 12 // exe=succeed