diff options
| author | tajo48 <55502906+tajo48@users.noreply.github.com> | 2023-06-15 00:46:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-15 00:46:45 +0200 |
| commit | e1704a2f1bd2e1c92e0741d656228fe6ccf36a35 (patch) | |
| tree | 6bbd1dd1ea127dd652e0fe64093c10a78734fdf5 /exercises/error_handling/errors1.rs | |
| parent | 1e02f194fdd1cb1ca99cf1d93d11455db8b1bce6 (diff) | |
| parent | 0282da6881c0708b5aaf6a01e731b88b61201f71 (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'exercises/error_handling/errors1.rs')
| -rw-r--r-- | exercises/error_handling/errors1.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs index bcee972..0ba59a5 100644 --- a/exercises/error_handling/errors1.rs +++ b/exercises/error_handling/errors1.rs @@ -1,9 +1,13 @@ // 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. +// +// 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. // I AM NOT DONE |
