We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763aa6e commit 10967bcCopy full SHA for 10967bc
1 file changed
exercises/option/option2.rs
@@ -5,7 +5,7 @@
5
6
fn main() {
7
let optional_value = Some(String::from("rustlings"));
8
- // Make this an if let statement whose value is "Some" type
+ // TODO: Make this an if let statement whose value is "Some" type
9
value = optional_value {
10
println!("the value of optional value is: {}", value);
11
} else {
@@ -17,7 +17,7 @@ fn main() {
17
optional_values_vec.push(Some(x));
18
}
19
20
- // 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>
21
// You can stack `Option<T>`'s into while let and if let
22
value = optional_values_vec.pop() {
23
println!("current value: {}", value);
0 commit comments