Просмотр исходного кода

Merge pull request #58 from ZapAnton/008_replace_index_var_type

008_quiz: Replaced the type of the index variable
Dave Gauer 4 лет назад
Родитель
Сommit
8df032e495
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exercises/008_quiz.zig

+ 1 - 1
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: