mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
008_quiz: Replaced the type of the index variable
Replaced the type of the `x` variable to `usize` instead of `u8`.
This commit is contained in:
parent
e47dccf245
commit
965440b2a3
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue