Merge pull request #282 from sanjaykdragon/master

feat: added option exercise
This commit is contained in:
fmoko
2020-04-05 15:58:09 +02:00
committed by GitHub
4 changed files with 47 additions and 1 deletions

View File

@@ -520,6 +520,20 @@ 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]]
name = "option1"
path = "exercises/option/option1.rs"
mode = "compile"
hint = """
Check out some functions of Option:
is_some
is_none
unwrap
and:
pattern matching
"""
[[exercises]]
name = "result1"
path = "exercises/error_handling/result1.rs"