From 187d2ad2262eab7670298747ee132670c1279282 Mon Sep 17 00:00:00 2001 From: Julien Bisconti Date: Sun, 12 May 2019 14:54:37 +0200 Subject: [PATCH] Update errors1.rs Add Result type signature as it is difficult for new comers to understand Generics and Error all at once --- exercises/error_handling/errors1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs index 14ed574b..84832349 100644 --- a/exercises/error_handling/errors1.rs +++ b/exercises/error_handling/errors1.rs @@ -63,7 +63,7 @@ mod tests { // `Option`. // To make this change, you'll need to: -// - update the return type in the function signature to be a Result that +// - update the return type in the function signature to be a Result that // could be the variants `Ok(String)` and `Err(String)` // - change the body of the function to return `Ok(stuff)` where it currently // returns `Some(stuff)`