mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-03 09:19:18 +00:00
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…
x
Reference in New Issue
Block a user