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

bare3_4

parent 8810c0d0
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ fn main() -> ! {
hprintln!("iterate over slice").unwrap();
let c: &u8;
for c in bs {
for c in bs {
hprint!("{},", c).unwrap();
}
......@@ -40,7 +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];
}
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