Skip to content
Snippets Groups Projects
Commit 31666c03 authored by anttib-5's avatar anttib-5
Browse files

bare3_5

parent e498ad5a
No related branches found
No related tags found
No related merge requests found
......@@ -37,11 +37,10 @@ fn main() -> ! {
hprintln!("iterate iterate using (raw) indexing").unwrap();
for i in 0..s.len() {
hprintln!("{},", bs[i]).unwrap();
a[i] = bs[i];
}
hprintln!("").unwrap();
a.clone_from_slice(&bs[..]); //Copies from bs into a
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.
Please register or to comment