mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
fix(errors1): change Result to Option in exersise description
This commit is contained in:
parent
464cb5566d
commit
fa0463b3b2
|
@ -3,7 +3,7 @@
|
||||||
// This function refuses to generate text to be printed on a nametag if you pass
|
// 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,
|
// 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
|
// instead of just sometimes returning `None`. Thankfully, Rust has a similar
|
||||||
// construct to `Result` that can be used to express error conditions. Let's use
|
// construct to `Option` that can be used to express error conditions. Let's use
|
||||||
// it!
|
// it!
|
||||||
//
|
//
|
||||||
// Execute `rustlings hint errors1` or use the `hint` watch subcommand for a
|
// Execute `rustlings hint errors1` or use the `hint` watch subcommand for a
|
||||||
|
|
Loading…
Reference in a new issue