Last active
June 21, 2021 23:05
-
-
Save brigand/d573a0b0fb5b7feaceaf8728841ff443 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
// ..snip.. | |
} | |
format!("Hello, {}", name) | |
} |
This file contains hidden or 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() { | |
// ..snip.. | |
} else { | |
format!("Hello, {}", name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment