From 6d3a412d4768a06dc69b5f1c9d5ebc9bc7f42650 Mon Sep 17 00:00:00 2001 From: Sanjay K Date: Wed, 11 Mar 2020 13:44:10 -0400 Subject: [PATCH] Update option1.rs --- exercises/option/option1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/option/option1.rs b/exercises/option/option1.rs index eb32ccb..c5b67b8 100644 --- a/exercises/option/option1.rs +++ b/exercises/option/option1.rs @@ -5,7 +5,7 @@ //you can modify anything EXCEPT for this function's sig fn print_number(maybe_number: Option) { - println!("printing: {}", *maybe_number); + println!("printing: {}", maybe_number.unwrap()); } fn main() { @@ -20,4 +20,4 @@ fn main() { numbers[iter] = number_to_add; } -} \ No newline at end of file +}