summaryrefslogtreecommitdiff
path: root/exercises/option
diff options
context:
space:
mode:
authorStefan Kupresak <stefan_vg@hotmail.com>2020-05-16 22:48:18 +0200
committerGitHub <noreply@github.com>2020-05-16 22:48:18 +0200
commit10967bce57682812dc0891a9f9757da1a9d87404 (patch)
treef276615e58c1691daf62c8b4e602968a6229b60b /exercises/option
parent763aa6e378a586caae2d8d63755a85eeba227933 (diff)
fix(option2): Add TODO to comments (#400)
Diffstat (limited to 'exercises/option')
-rw-r--r--exercises/option/option2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/option/option2.rs b/exercises/option/option2.rs
index a55f734..a1517d7 100644
--- a/exercises/option/option2.rs
+++ b/exercises/option/option2.rs
@@ -5,7 +5,7 @@
fn main() {
let optional_value = Some(String::from("rustlings"));
- // Make this an if let statement whose value is "Some" type
+ // TODO: Make this an if let statement whose value is "Some" type
value = optional_value {
println!("the value of optional value is: {}", value);
} else {
@@ -17,7 +17,7 @@ fn main() {
optional_values_vec.push(Some(x));
}
- // make this a while let statement - remember that vector.pop also adds another layer of Option<T>
+ // TODO: make this a while let statement - remember that vector.pop also adds another layer of Option<T>
// You can stack `Option<T>`'s into while let and if let
value = optional_values_vec.pop() {
println!("current value: {}", value);