aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches/patches/032_unreachable.patch
blob: bab0e5077a250593b5997ef7197fbb7829553d8c (plain)
1
2
3
4
5
6
7
8
9
10
--- exercises/032_unreachable.zig	2023-10-03 22:15:22.122241138 +0200
+++ answers/032_unreachable.zig	2023-10-05 20:04:06.986098904 +0200
@@ -35,6 +35,7 @@
             3 => {
                 current_value *= current_value;
             },
+            else => unreachable,
         }
 
         std.debug.print("{} ", .{current_value});