01_hello.zig 404 B

12345678910111213141516
  1. //
  2. // Oh no! This program is supposed to print "Hello world!" but it needs
  3. // your help!
  4. //
  5. // Hint: Zig functions are private by default.
  6. // The main() function should be public.
  7. // Declare a public function with "pub fn ..."
  8. //
  9. // Try to fix the program and run `ziglings` to see if it passes.
  10. //
  11. const std = @import("std");
  12. fn main() void {
  13. std.debug.print("Hello world!\n", .{});
  14. }