Add note about iterating over Option

This commit is contained in:
mo8it 2024-07-10 15:16:49 +02:00
parent d7024d80ce
commit 6263cb6456

View file

@ -1145,7 +1145,11 @@ test = false
strict_clippy = true strict_clippy = true
hint = """ hint = """
`for` loops over `Option` values are more clearly expressed as an `if-let` `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]] [[exercises]]
name = "clippy3" name = "clippy3"