From 7679f93f688452b2236d20b49f92569b8d56e20d Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Tue, 21 Nov 2023 15:01:22 +0100 Subject: Converted var to const if there is no mutation in var. This is checked from compiler version 0.12.0-dev.1664 --- exercises/072_comptime7.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/072_comptime7.zig') diff --git a/exercises/072_comptime7.zig b/exercises/072_comptime7.zig index 9bc30fb..631e75b 100644 --- a/exercises/072_comptime7.zig +++ b/exercises/072_comptime7.zig @@ -39,7 +39,7 @@ pub fn main() void { // This gets the digit from the "instruction". Can you // figure out why we subtract '0' from it? - comptime var digit = instructions[i + 1] - '0'; + const digit = instructions[i + 1] - '0'; // This 'switch' statement contains the actual work done // at runtime. At first, this doesn't seem exciting... -- cgit v1.2.3