Update option1.rs

This commit is contained in:
Sanjay K 2020-03-11 13:44:10 -04:00 committed by GitHub
parent 135e5d47a7
commit 6d3a412d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
//you can modify anything EXCEPT for this function's sig
fn print_number(maybe_number: Option<u16>) {
println!("printing: {}", *maybe_number);
println!("printing: {}", maybe_number.unwrap());
}
fn main() {
@ -20,4 +20,4 @@ fn main() {
numbers[iter] = number_to_add;
}
}
}