diff options
| author | Julien Bisconti <veggiemonk@users.noreply.github.com> | 2019-05-12 14:54:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-12 14:54:37 +0200 |
| commit | 187d2ad2262eab7670298747ee132670c1279282 (patch) | |
| tree | 9f5a05da80bd40b59a96a94ade656b207a3c466c /exercises | |
| parent | 1f2ee8cb62de8b59f6e1ce0a1beb3f3be171f843 (diff) | |
Update errors1.rs
Add Result type signature as it is difficult for new comers to understand Generics and Error all at once
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/error_handling/errors1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs index 14ed574..8483234 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<String, String> 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)` |
