diff options
author | ZapAnton <wc3ft2@gmail.com> | 2021-05-28 21:46:08 +0300 |
---|---|---|
committer | ZapAnton <wc3ft2@gmail.com> | 2021-05-28 21:46:08 +0300 |
commit | 447b913c38af8131678fc2be6634a4947d329725 (patch) | |
tree | 69bc78d48edbe4fb43a42e127f8c7a3a35149e75 /exercises/008_quiz.zig | |
parent | d09ae39714bbca6e12c67939509a36faa6a76198 (diff) | |
download | ziglings-447b913c38af8131678fc2be6634a4947d329725.tar.gz ziglings-447b913c38af8131678fc2be6634a4947d329725.tar.bz2 ziglings-447b913c38af8131678fc2be6634a4947d329725.tar.xz ziglings-447b913c38af8131678fc2be6634a4947d329725.zip |
008_quiz: Replaced the type of the index variable
Replaced the type of the `x` variable to `usize` instead of `u8`.
Diffstat (limited to 'exercises/008_quiz.zig')
-rw-r--r-- | exercises/008_quiz.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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: |