Skip to content

Commit 10967bc

Browse files
authored
fix(option2): Add TODO to comments (#400)
1 parent 763aa6e commit 10967bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/option/option2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
fn main() {
77
let optional_value = Some(String::from("rustlings"));
8-
// Make this an if let statement whose value is "Some" type
8+
// TODO: Make this an if let statement whose value is "Some" type
99
value = optional_value {
1010
println!("the value of optional value is: {}", value);
1111
} else {
@@ -17,7 +17,7 @@ fn main() {
1717
optional_values_vec.push(Some(x));
1818
}
1919

20-
// make this a while let statement - remember that vector.pop also adds another layer of Option<T>
20+
// TODO: make this a while let statement - remember that vector.pop also adds another layer of Option<T>
2121
// You can stack `Option<T>`'s into while let and if let
2222
value = optional_values_vec.pop() {
2323
println!("current value: {}", value);

0 commit comments

Comments
 (0)