summaryrefslogtreecommitdiff
path: root/exercises/045_optionals.zig
diff options
context:
space:
mode:
authorlording <mathias.berthonneau@gmail.com>2023-06-22 09:41:41 +0000
committerlording <mathias.berthonneau@gmail.com>2023-06-22 09:41:41 +0000
commitd2d3dfa277e7d2a22ebbaf9b47316363035ed500 (patch)
tree95b679455dcbb501f0a65d76fe7bc2b73a1ee32a /exercises/045_optionals.zig
parentf09a87c348bafb134e3f5eca0ef654cc2a20ceef (diff)
var to const when posssible
Diffstat (limited to 'exercises/045_optionals.zig')
-rw-r--r--exercises/045_optionals.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/045_optionals.zig b/exercises/045_optionals.zig
index 1327e4c..494c960 100644
--- a/exercises/045_optionals.zig
+++ b/exercises/045_optionals.zig
@@ -29,7 +29,7 @@ pub fn main() void {
// Please threaten the result so that answer is either the
// integer value from deepThought() OR the number 42:
- var answer: u8 = result;
+ const answer: u8 = result;
std.debug.print("The Ultimate Answer: {}.\n", .{answer});
}