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:
Jawaad Mahmood 2020-05-09 13:12:25 -06:00 committed by GitHub
parent 2b20c8a0f5
commit 974656fdee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]]