summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-07-10 15:16:49 +0200
committermo8it <mo8it@proton.me>2024-07-10 15:16:49 +0200
commit6263cb6456d18f142c76ccf69ee0d72ae4db3a8b (patch)
tree41b8afcde3d412a1549c2c12ae53444ca895bf81
parentd7024d80ce0a640271d006dbfda440f60652af6d (diff)
Add note about iterating over Option
-rw-r--r--rustlings-macros/info.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml
index 67d50e6..d7bb1ca 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"