mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-07-17 01:32:35 +02:00
Update option1.rs
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
//you can modify anything EXCEPT for this function's sig
|
//you can modify anything EXCEPT for this function's sig
|
||||||
fn print_number(maybe_number: Option<u16>) {
|
fn print_number(maybe_number: Option<u16>) {
|
||||||
println!("printing: {}", *maybe_number);
|
println!("printing: {}", maybe_number.unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Reference in New Issue
Block a user