2020-12-23 17:02:35 +00:00
|
|
|
//
|
2021-01-03 17:21:11 +00:00
|
|
|
// Oh no! This program is supposed to print "Hello world!" but it needs
|
|
|
|
// your help!
|
2020-12-23 17:02:35 +00:00
|
|
|
//
|
2021-01-03 17:21:11 +00:00
|
|
|
// Hint: Zig functions are private by default.
|
|
|
|
// The main() function should be public.
|
|
|
|
// Declare a public function with "pub fn ..."
|
2020-12-23 17:02:35 +00:00
|
|
|
//
|
2021-01-03 17:21:11 +00:00
|
|
|
// Try to fix the program and run `ziglings` to see if it passes.
|
2020-12-23 17:02:35 +00:00
|
|
|
//
|
2021-01-03 17:21:11 +00:00
|
|
|
const std = @import("std");
|
2020-12-23 17:02:35 +00:00
|
|
|
|
2021-01-03 17:21:11 +00:00
|
|
|
fn main() void {
|
|
|
|
std.debug.print("Hello world!\n", .{});
|
2020-12-23 17:02:35 +00:00
|
|
|
}
|
|
|
|
|