summaryrefslogtreecommitdiff
path: root/exercises/13_error_handling/errors1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/13_error_handling/errors1.rs')
-rw-r--r--exercises/13_error_handling/errors1.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/13_error_handling/errors1.rs b/exercises/13_error_handling/errors1.rs
index ec7cb3c..e07fddc 100644
--- a/exercises/13_error_handling/errors1.rs
+++ b/exercises/13_error_handling/errors1.rs
@@ -6,7 +6,7 @@
// of `Option<String>`.
fn generate_nametag_text(name: String) -> Option<String> {
if name.is_empty() {
- // Empty names aren't allowed.
+ // Empty names aren't allowed
None
} else {
Some(format!("Hi! My name is {name}"))