diff options
author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-01-22 13:44:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 13:44:10 +0100 |
commit | 37326e3da229f1aa755143310aa2c921b985e870 (patch) | |
tree | 87ca11bf8a0cb3359914917e16753a2bf0e7fd29 | |
parent | 039e4736caf91f8021cb5bf36a1b4a14bb8e8c74 (diff) | |
parent | 0616cc43035d96b05f545edbd01a1147c0f3ff6d (diff) |
Merge pull request #168 from chrboesch/end
the_end function added
-rw-r--r-- | build.zig | 4 | ||||
-rw-r--r-- | exercises/999_the_end.zig | 8 | ||||
-rw-r--r-- | patches/patches/999_the_end.patch | 2 |
3 files changed, 14 insertions, 0 deletions
@@ -460,6 +460,10 @@ const exercises = [_]Exercise{ // .output = "ABCDEF", // .@"async" = true, // }, + .{ + .main_file = "999_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/999_the_end.zig b/exercises/999_the_end.zig new file mode 100644 index 0000000..4ff2449 --- /dev/null +++ b/exercises/999_the_end.zig @@ -0,0 +1,8 @@ +// This is the end for now! +// More exercises will follow... + +const print = @import("std").debug.print; + +pub fn main() void { + print("\nThis 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.\n", .{}); +} diff --git a/patches/patches/999_the_end.patch b/patches/patches/999_the_end.patch new file mode 100644 index 0000000..ae674da --- /dev/null +++ b/patches/patches/999_the_end.patch @@ -0,0 +1,2 @@ +8a9 +> // gollum's line ;-) |