From 6263cb6456d18f142c76ccf69ee0d72ae4db3a8b Mon Sep 17 00:00:00 2001 From: mo8it Date: Wed, 10 Jul 2024 15:16:49 +0200 Subject: [PATCH] Add note about iterating over Option --- rustlings-macros/info.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index 67d50e63..d7bb1ca1 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -1145,7 +1145,11 @@ test = false strict_clippy = true hint = """ `for` loops over `Option` values are more clearly expressed as an `if-let` -statement.""" +statement. + +Not required to solve this exercise, but if you are interested in when iterating +over `Option` can be useful, read the following section in the documentation: +https://doc.rust-lang.org/std/option/#iterating-over-option""" [[exercises]] name = "clippy3"