File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
fn main ( ) {
7
7
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
9
9
value = optional_value {
10
10
println!( "the value of optional value is: {}" , value) ;
11
11
} else {
@@ -17,7 +17,7 @@ fn main() {
17
17
optional_values_vec. push ( Some ( x) ) ;
18
18
}
19
19
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>
21
21
// You can stack `Option<T>`'s into while let and if let
22
22
value = optional_values_vec. pop ( ) {
23
23
println ! ( "current value: {}" , value) ;
You can’t perform that action at this time.
0 commit comments