Skip to content

Instantly share code, notes, and snippets.

@lukeholder
Created January 3, 2020 23:04
Show Gist options
  • Save lukeholder/679ea536c65c7b0ab020e2cb14971c63 to your computer and use it in GitHub Desktop.
Save lukeholder/679ea536c65c7b0ab020e2cb14971c63 to your computer and use it in GitHub Desktop.
hello.zig
const std = @import("std");
pub fn main() !void {
const stdout = &std.io.getStdOut().outStream().stream;
try stdout.print("Hello, {}!\n", .{"world"});
}
@lukeholder
Copy link
Author

lukeholder commented Jan 3, 2020

Getting error when formatting

hello.zig:5:39: error: expected 'Identifier', found '{'
    try stdout.print("Hello, {}!\n", .{"world"});
                                      ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment