From 2ad8b9b469b2b896df7e78e7ae01a9c3f85e808d Mon Sep 17 00:00:00 2001 From: Justin Kelz Date: Mon, 4 Apr 2022 08:56:55 -0700 Subject: [PATCH] Finished Errors5 --- exercises/error_handling/errors5.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exercises/error_handling/errors5.rs b/exercises/error_handling/errors5.rs index 365a8691..4a99030e 100644 --- a/exercises/error_handling/errors5.rs +++ b/exercises/error_handling/errors5.rs @@ -4,7 +4,6 @@ // It won't compile right now! Why? // Execute `rustlings hint errors5` for hints! -// I AM NOT DONE use std::error; use std::fmt; @@ -14,7 +13,7 @@ use std::num::ParseIntError; fn main() -> Result<(), ParseIntError> { let pretend_user_input = "42"; let x: i64 = pretend_user_input.parse()?; - println!("output={:?}", PositiveNonzeroInteger::new(x)?); + println!("output={:?}", PositiveNonzeroInteger::new(x)); // The ? here seemed to be superfluous as the erro handlnig had already bee instantiated Ok(()) }