From 13ed37b6a315f73ba173c62bbd612f4427bf872c Mon Sep 17 00:00:00 2001 From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se> Date: Thu, 21 Feb 2019 15:43:40 +0100 Subject: [PATCH] bare3_3 --- examples/bare3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bare3.rs b/examples/bare3.rs index c7dc227..abce7b6 100644 --- a/examples/bare3.rs +++ b/examples/bare3.rs @@ -39,7 +39,7 @@ fn main() -> ! { hprintln!("").unwrap(); let a: [u8 ;4 ] = [65u8; 4]; - //let mut a = [0u8; 4]; + let a = [0u8; 4]; hprintln!("").unwrap(); hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap(); @@ -99,7 +99,7 @@ fn main() -> ! { //` // Run the program, what happens and why? // -// ** your answer here ** +// ** All elements in the final array are 0, The first variable "a" is shadowed by the second** // // Commit your answers (bare3_3) // -- GitLab