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.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/exercises/13_error_handling/errors1.rs b/exercises/13_error_handling/errors1.rs
index 9767f2c..15a3716 100644
--- a/exercises/13_error_handling/errors1.rs
+++ b/exercises/13_error_handling/errors1.rs
@@ -1,13 +1,12 @@
-// errors1.rs
-//
// This function refuses to generate text to be printed on a nametag if you pass
// it an empty string. It'd be nicer if it explained what the problem was,
// instead of just sometimes returning `None`. Thankfully, Rust has a similar
// construct to `Option` that can be used to express error conditions. Let's use
// it!
-//
-// Execute `rustlings hint errors1` or use the `hint` watch subcommand for a
-// hint.
+
+fn main() {
+ // You can optionally experiment here.
+}
pub fn generate_nametag_text(name: String) -> Option<String> {
if name.is_empty() {