1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-11 13:46:03 +02:00

the_end function added

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

View File

@ -460,6 +460,10 @@ const exercises = [_]Exercise{
// .output = "ABCDEF",
// .@"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.

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