From fa2a830ba2663aa63ec6799163e20453b18e0260 Mon Sep 17 00:00:00 2001 From: Chris Boesch <48591413+chrboesch@users.noreply.github.com> Date: Sat, 21 Jan 2023 23:26:53 +0100 Subject: [PATCH] the_end function added --- build.zig | 4 ++++ exercises/the_end.zig | 6 ++++++ patches/patches/the_end.patch | 0 3 files changed, 10 insertions(+) create mode 100644 exercises/the_end.zig create mode 100644 patches/patches/the_end.patch diff --git a/build.zig b/build.zig index 2f84fbb..b3f254a 100644 --- a/build.zig +++ b/build.zig @@ -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. diff --git a/exercises/the_end.zig b/exercises/the_end.zig new file mode 100644 index 0000000..d6b29e0 --- /dev/null +++ b/exercises/the_end.zig @@ -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.", .{}); +} diff --git a/patches/patches/the_end.patch b/patches/patches/the_end.patch new file mode 100644 index 0000000..e69de29