Skip to content
Snippets Groups Projects
Commit c0107e2a authored by Anton Grahn's avatar Anton Grahn
Browse files

bare3_5

parent fa6b62c5
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,9 @@ fn main() -> ! {
let a: [u8;4] = [65u8; 4];
let mut a = [0u8; 4];
for i in 0..bs.len(){
a[i] = bs[i];
}
let mut a = &bs[..];
hprintln!("").unwrap();
hprintln!("a = {}", core::str::from_utf8(&a).unwrap()).unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment