hello_rusty_worlds

Function hello_world

Source
pub fn hello_world(planet: u8) -> Option<&'static str>
Expand description

This function says hello to one of Sol’s worlds, specified by a numeric argument

§Examples

let greeting = hello_rusty_worlds::hello_world(3);

assert_eq!(greeting, Some("Hello Earth!"));