the_end function added

This commit is contained in:
Chris Boesch 2023-01-21 23:26:53 +01:00
parent 039e4736ca
commit 007f4d655b
3 changed files with 10 additions and 0 deletions

View file

@ -460,6 +460,10 @@ const exercises = [_]Exercise{
// .output = "ABCDEF", // .output = "ABCDEF",
// .@"async" = true, // .@"async" = true,
// }, // },
.{
.main_file = "the_end.zig",
.output = "This is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.",
},
}; };
/// Check the zig version to make sure it can compile the examples properly. /// Check the zig version to make sure it can compile the examples properly.

6
exercises/the_end.zig Normal file
View file

@ -0,0 +1,6 @@
// This is the end for now!
// More exercises will follow...
pub fn main() void {
@import("std").debug.print("This is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.", .{});
}

View file