2017-10-31 16:47:55 +08:00
|
|
|
const std = @import("std");
|
2015-11-24 17:43:45 +08:00
|
|
|
|
2018-02-01 11:48:40 +08:00
|
|
|
pub fn main() !void {
|
2019-11-13 09:36:07 +08:00
|
|
|
const stdout_file = std.io.getStdOut();
|
2017-10-31 16:47:55 +08:00
|
|
|
// If this program encounters pipe failure when printing to stdout, exit
|
|
|
|
// with an error.
|
2018-01-08 05:51:46 +08:00
|
|
|
try stdout_file.write("Hello, world!\n");
|
2015-08-06 06:46:40 +08:00
|
|
|
}
|