Skip to content

Commit

Permalink
Add note about iterating over Option
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Jul 10, 2024
1 parent d7024d8 commit 6263cb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rustlings-macros/info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6263cb6

Please sign in to comment.