mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-17 22:58:08 -05:00
Remove dot for copy-pasta
This commit is contained in:
parent
69b4fd49fc
commit
ca5d5f0a49
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
// of `Option<String>`.
|
// of `Option<String>`.
|
||||||
fn generate_nametag_text(name: String) -> Option<String> {
|
fn generate_nametag_text(name: String) -> Option<String> {
|
||||||
if name.is_empty() {
|
if name.is_empty() {
|
||||||
// Empty names aren't allowed.
|
// Empty names aren't allowed
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
Some(format!("Hi! My name is {name}"))
|
Some(format!("Hi! My name is {name}"))
|
||||||
|
|
Loading…
Reference in a new issue