Browse Source

the_end function added

Chris Boesch 2 years ago
parent
commit
007f4d655b
3 changed files with 10 additions and 0 deletions
  1. 4 0
      build.zig
  2. 6 0
      exercises/the_end.zig
  3. 0 0
      patches/patches/the_end.patch

+ 4 - 0
build.zig

@@ -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 - 0
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.", .{});
+}

+ 0 - 0
patches/patches/the_end.patch