Update exercises/option/option2.rs
Co-Authored-By: fmoko <mokou@posteo.net>
This commit is contained in:
parent
d4522f2736
commit
b452af006a
|
@ -5,7 +5,7 @@
|
|||
|
||||
fn main() {
|
||||
let optional_value = Some(String::from("rustlings"));
|
||||
//make this an if let statement - value is "Some" type
|
||||
// Make this an if let statement whose value is "Some" type
|
||||
value = optional_value {
|
||||
println!("the value of optional value is: {}", value);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue