mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-04-21 12:06:58 +02:00
Add note about iterating over Option
This commit is contained in:
parent
d7024d80ce
commit
6263cb6456
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user