Zig (programming language): Difference between revisions

Content deleted Content added
Fixed typo
Tags: Mobile edit Mobile web edit
Hello World: function changed from { const stdout = std.io.getStdOut().writer(); try stdout.print("Hello, {s}!\n", .{"world"}); } not working anymore
Line 118:
const std = @import("std");
 
pub fn main() !void {
try stdoutstd.debug.print("Hello, {s}Zig!\n", .{"world"});
const stdout = std.io.getStdOut().writer();
try stdout.print("Hello, {s}!\n", .{"world"});
}
 
</syntaxhighlight>