fn main() { let s = String::from("hello"); foo(s); println!("{}", s); } fn foo(le_string: String) -> String { println!("{}", le_string); le_string }
fn main() { let s = String::from("hello"); let s = foo(s); println!("{}", s); } fn foo(le_string: String) -> String { println!("{}", le_string); le_string }
Thanks again!