summaryrefslogtreecommitdiff
path: root/rustlings-macros/info.toml
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-06-26 14:35:05 +0200
committermo8it <mo8it@proton.me>2024-06-26 14:35:05 +0200
commita91888e79e69e04e57c2049cdf940a70201e1d6e (patch)
treef757f0790d5176b9a5f96b5c38c0f0636a2efca1 /rustlings-macros/info.toml
parentc31e15c4cf5085adcf544a33ac256364fc2bcfbf (diff)
option2 solution
Diffstat (limited to 'rustlings-macros/info.toml')
-rw-r--r--rustlings-macros/info.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml
index 3694b94..6027b6b 100644
--- a/rustlings-macros/info.toml
+++ b/rustlings-macros/info.toml
@@ -616,9 +616,9 @@ Check out:
- https://doc.rust-lang.org/rust-by-example/flow_control/if_let.html
- https://doc.rust-lang.org/rust-by-example/flow_control/while_let.html
-Remember that `Option`s can be stacked in `if let` and `while let`.
+Remember that `Option`s can be nested in if-let and while-let statements.
-For example: `Some(Some(variable)) = variable2`
+For example: `if let Some(Some(x)) = y`
Also see `Option::flatten`
"""