diff --git a/examples/bare3.rs b/examples/bare3.rs index 48c0f5b7bab1908890aae10cca6402d503d33d0e..15b89b860c8715df0adffcba9a7a52873972a93b 100644 --- a/examples/bare3.rs +++ b/examples/bare3.rs @@ -37,8 +37,8 @@ fn main() -> ! { hprintln!("").unwrap(); - let a = [0u8; 4]; - // let mut a = [0u8; 4]; + //let a = [0u8; 4]; + let mut a = [0u8; 4]; hprintln!("").unwrap(); hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap(); @@ -111,6 +111,10 @@ fn main() -> ! { // Run the program, what happens and why? // // ** your answer here ** +// +// Everything basically acts as normal, except for the final line which +// is a = , this is because whats right of the equal sign is the value of +// a turned from ASCII to a character, which in this case is NULL. // // Commit your answers (bare3_3) //