From 974656fdee818b1d315e895f9a8089d887a0e6df Mon Sep 17 00:00:00 2001 From: Jawaad Mahmood <ideas@jawaadmahmood.com> Date: Sat, 9 May 2020 13:12:25 -0600 Subject: [PATCH] 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. --- info.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/info.toml b/info.toml index 89a669c..c47041b 100644 --- a/info.toml +++ b/info.toml @@ -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]]