diff --git a/examples/bare3.rs b/examples/bare3.rs index 9f41ec0b59e96896dc921ff4278fad5882600a99..c54c867c5d93037b5281ad64088e0395e6896ce9 100644 --- a/examples/bare3.rs +++ b/examples/bare3.rs @@ -37,7 +37,7 @@ fn main() -> ! { hprintln!("").unwrap(); let a: [u8; 4] = [65u8; 4]; - // let mut a = [0u8; 4]; + let mut a = [0u8; 4]; hprintln!("").unwrap(); hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap(); @@ -96,7 +96,8 @@ fn main() -> ! { //` // Run the program, what happens and why? // -// ** your answer here ** +// a becomes a list of length 4 with each value being 0. This is translated as the null char in the ascii table +// This gives an output of: "a =" // // Commit your answers (bare3_3) //