mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-24 06:22:23 -05:00
Add note about iterating over Option
This commit is contained in:
parent
d7024d80ce
commit
6263cb6456
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue