From 212ef0d9a1d1fc693b6bc96a799ed37c0cf34275 Mon Sep 17 00:00:00 2001 From: anttib-5 <anttib-5@student.ltu.se> Date: Thu, 7 Mar 2019 17:04:38 +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 2e13ea5..578fc2e 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 mut a = [0u8; 4]; hprintln!("").unwrap(); hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap(); @@ -95,7 +95,7 @@ fn main() -> ! { //` // Run the program, what happens and why? // -// ** your answer here ** +// Does not print anything for a, since 0 in ascii is null // // Commit your answers (bare3_3) // -- GitLab