mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-27 04:18:10 -05:00
Merge pull request #1573 from novanish/refactor-error-1-comment
refactor: Update comment to use correct construct name 'Result' inste…
This commit is contained in:
commit
9379d06275
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue