refactor: Update comment to use correct construct name 'Result' instead of 'Option'

Refactor the comment in the code to provide a more accurate description of the construct being used. Replace the mention of Option with Result.
This commit is contained in:
Anish 2023-06-23 17:18:17 +05:45 committed by GitHub
parent adc7ca5690
commit eacf7db6f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
// 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
// construct to `Result` that can be used to express error conditions. Let's use
// it!
//
// Execute `rustlings hint errors1` or use the `hint` watch subcommand for a