2020-12-23 12:02:35 -05:00
|
|
|
//
|
2021-01-03 12:21:11 -05:00
|
|
|
// Oh no! This program is supposed to print "Hello world!" but it needs
|
|
|
|
// your help!
|
2020-12-23 12:02:35 -05:00
|
|
|
//
|
2021-02-07 11:06:51 -05:00
|
|
|
//
|
|
|
|
// Zig functions are private by default but the main() function should
|
|
|
|
// be public.
|
2020-12-23 12:02:35 -05:00
|
|
|
//
|
2021-02-07 11:06:51 -05:00
|
|
|
// A function is declared public with the "pub" statement like so:
|
|
|
|
//
|
|
|
|
// pub fn foo() void {
|
|
|
|
// ...
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// Try to fix the program and run `ziglings` to see if it works!
|
2020-12-23 12:02:35 -05:00
|
|
|
//
|
2021-01-03 12:21:11 -05:00
|
|
|
const std = @import("std");
|
2020-12-23 12:02:35 -05:00
|
|
|
|
2021-01-03 12:21:11 -05:00
|
|
|
fn main() void {
|
|
|
|
std.debug.print("Hello world!\n", .{});
|
2020-12-23 12:02:35 -05:00
|
|
|
}
|
|
|
|
|