-
-
Save brigand/09338149abc3f78e0f469d970b7bcfb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn greet(name: &str) -> String { | |
if name.is_empty() { | |
format!("Hello, {}", "whoever") | |
} else { | |
format!("Hello, {}", name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment