aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-01-21 23:26:53 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-01-21 23:26:53 +0100
commit007f4d655b54f164bbe64c67f0cdd5971f578925 (patch)
tree34bfe2d8569253dd4d22b7e235d08ec72790bbed
parent039e4736caf91f8021cb5bf36a1b4a14bb8e8c74 (diff)
the_end function added
-rw-r--r--build.zig4
-rw-r--r--exercises/the_end.zig6
-rw-r--r--patches/patches/the_end.patch0
3 files changed, 10 insertions, 0 deletions
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
--- /dev/null
+++ b/patches/patches/the_end.patch