1 2 3 4 5 6 7 8 9 10 11
pub fn hello_world() -> String { let s = String::from("Hello, world"); println!("{}", s); return s; } pub fn hello_world_with_args(arg: &str) -> String { let s = format!("Hello, world, {}", arg); println!("{}", s); return s }