mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-03 01:09:18 +00:00
Update exercises/option/option2.rs
Co-Authored-By: fmoko <mokou@posteo.net>
This commit is contained in:
parent
2ac3e4005f
commit
ca9aaabbe4
@ -18,7 +18,7 @@ fn main() {
|
||||
}
|
||||
|
||||
// make this a while let statement - remember that vector.pop also adds another layer of Option<T>
|
||||
// you can stack Option<T>'s into while let and if let
|
||||
// You can stack `Option<T>`'s into while let and if let
|
||||
value = optional_values_vec.pop() {
|
||||
println!("current value: {}", value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user