Skip to content

Commit 6263cb6

Browse files
committed
Add note about iterating over Option
1 parent d7024d8 commit 6263cb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rustlings-macros/info.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,11 @@ test = false
11451145
strict_clippy = true
11461146
hint = """
11471147
`for` loops over `Option` values are more clearly expressed as an `if-let`
1148-
statement."""
1148+
statement.
1149+
1150+
Not required to solve this exercise, but if you are interested in when iterating
1151+
over `Option` can be useful, read the following section in the documentation:
1152+
https://doc.rust-lang.org/std/option/#iterating-over-option"""
11491153

11501154
[[exercises]]
11511155
name = "clippy3"

0 commit comments

Comments
 (0)