feat: added excercise for option

This commit is contained in:
Sanjay K
2020-03-05 15:52:54 -05:00
parent 8b9479071c
commit 135e5d47a7
4 changed files with 48 additions and 2 deletions

View File

@@ -701,4 +701,18 @@ path = "exercises/conversions/from_str.rs"
mode = "test"
hint = """
If you've already solved try_from_into.rs, then this is almost a copy-paste.
Otherwise, go ahead and solve try_from_into.rs first."""
Otherwise, go ahead and solve try_from_into.rs first."""
[[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
"""