mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 03:38:09 -05:00
Merge pull request #615 from wsh/docfixes
docs: mention flatten in the options2 hint
This commit is contained in:
commit
5772589dc3
1 changed files with 1 additions and 2 deletions
|
@ -575,8 +575,7 @@ https://doc.rust-lang.org/rust-by-example/flow_control/while_let.html
|
||||||
|
|
||||||
Remember that Options can be stacked in if let and while let.
|
Remember that Options can be stacked in if let and while let.
|
||||||
For example: Some(Some(variable)) = variable2
|
For example: Some(Some(variable)) = variable2
|
||||||
|
Also see Option::flatten
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
|
|
Loading…
Reference in a new issue