Add hint about Array Initialization to options1.rs
Array initialization / default variables is unrelated to Options and not overtly mentioned beforehand. As the question is about Options, it is easy for someone new to Rust to misunderstand and look elsewhere for a solution.
This commit is contained in:
parent
2b20c8a0f5
commit
974656fdee
|
@ -561,13 +561,15 @@ name = "option1"
|
|||
path = "exercises/option/option1.rs"
|
||||
mode = "compile"
|
||||
hint = """
|
||||
Check out some functions of Option:
|
||||
Hint 1: Check out some functions of Option:
|
||||
is_some
|
||||
is_none
|
||||
unwrap
|
||||
|
||||
and:
|
||||
pattern matching
|
||||
|
||||
Hint 2: There are no sensible defaults for the value of an Array; the values need to be filled before use.
|
||||
"""
|
||||
|
||||
[[exercises]]
|
||||
|
|
Loading…
Reference in a new issue