mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 00:00:05 +03: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
|
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