aboutsummaryrefslogtreecommitdiff
path: root/exercises/031_switch2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/031_switch2.zig')
-rw-r--r--exercises/031_switch2.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/031_switch2.zig b/exercises/031_switch2.zig
index 1b3acdb..d8af6e6 100644
--- a/exercises/031_switch2.zig
+++ b/exercises/031_switch2.zig
@@ -15,7 +15,7 @@ pub fn main() void {
const lang_chars = [_]u8{ 26, 9, 7, 42 };
for (lang_chars) |c| {
- var real_char: u8 = switch (c) {
+ const real_char: u8 = switch (c) {
1 => 'A',
2 => 'B',
3 => 'C',