2020-12-23 18:02:35 +01:00
|
|
|
//
|
2021-01-03 18:21:11 +01:00
|
|
|
// Oh no! This program is supposed to print "Hello world!" but it needs
|
|
|
|
// your help!
|
2020-12-23 18:02:35 +01:00
|
|
|
//
|
2021-02-15 22:55:44 +01:00
|
|
|
//
|
2021-02-07 17:06:51 +01:00
|
|
|
// Zig functions are private by default but the main() function should
|
|
|
|
// be public.
|
2020-12-23 18:02:35 +01:00
|
|
|
//
|
2021-02-07 17:06:51 +01: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 18:02:35 +01:00
|
|
|
//
|
2021-01-03 18:21:11 +01:00
|
|
|
const std = @import("std");
|
2020-12-23 18:02:35 +01:00
|
|
|
|
2021-01-03 18:21:11 +01:00
|
|
|
fn main() void {
|
|
|
|
std.debug.print("Hello world!\n", .{});
|
2020-12-23 18:02:35 +01:00
|
|
|
}
|