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
b452af006a
commit
2ac3e4005f
@ -9,7 +9,7 @@ fn main() {
|
|||||||
value = optional_value {
|
value = optional_value {
|
||||||
println!("the value of optional value is: {}", value);
|
println!("the value of optional value is: {}", value);
|
||||||
} else {
|
} else {
|
||||||
println!("optional value does not have a value!");
|
println!("The optional value doesn't contain anything!");
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut optional_values_vec: Vec<Option<i8>> = Vec::new();
|
let mut optional_values_vec: Vec<Option<i8>> = Vec::new();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user