Browse Source

create starting point

master
Jim Infield 3 years ago
parent
commit
cca7def402
  1. 19
      src/main.rs

19
src/main.rs

@ -1,3 +1,20 @@
#![allow(unused)]
fn main() {
println!("Hello, world!");
let args = vec![
"string1",
"string2",
];
println!();
for arg in args {
println!("{}",func(&arg));
};
println!();
}
fn func(s: &str) -> String {
s.into()
}
Loading…
Cancel
Save