mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-01 07:53:30 +02:00
Update option1.rs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user