From 965440b2a3809e0b74bb46298e4183cac22dfc1c Mon Sep 17 00:00:00 2001 From: ZapAnton Date: Fri, 28 May 2021 21:46:08 +0300 Subject: [PATCH] 008_quiz: Replaced the type of the index variable Replaced the type of the `x` variable to `usize` instead of `u8`. --- exercises/008_quiz.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/008_quiz.zig b/exercises/008_quiz.zig index eda66b8..309a8ae 100644 --- a/exercises/008_quiz.zig +++ b/exercises/008_quiz.zig @@ -13,7 +13,7 @@ pub fn main() void { // What is this nonsense? :-) const letters = "YZhifg"; - const x: u8 = 1; + const x: usize = 1; // This is something you haven't seen before: declaring an array // without putting anything in it. There is no error here: