mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-26 07:14:17 -05:00
chore: Remove duplicate option1
exercise
This commit is contained in:
parent
3ab084a421
commit
2b80f6ed41
1 changed files with 1 additions and 12 deletions
11
info.toml
11
info.toml
|
@ -509,17 +509,6 @@ https://doc.rust-lang.org/std/result/#results-must-be-used"""
|
||||||
|
|
||||||
# OPTIONS / RESULTS
|
# OPTIONS / RESULTS
|
||||||
|
|
||||||
[[exercises]]
|
|
||||||
name = "option1"
|
|
||||||
path = "exercises/error_handling/option1.rs"
|
|
||||||
mode = "test"
|
|
||||||
hint = """
|
|
||||||
Try using a `match` statement where the arms are `Some(thing)` and `None`.
|
|
||||||
Or set a default value to print out if you get `None` by using the
|
|
||||||
function `unwrap_or`.
|
|
||||||
Or use an `if let` statement on the result of `pop()` to both destructure
|
|
||||||
a `Some` value and only print out something if we have a value!"""
|
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "option1"
|
name = "option1"
|
||||||
path = "exercises/option/option1.rs"
|
path = "exercises/option/option1.rs"
|
||||||
|
|
Loading…
Reference in a new issue