Skip to content

Commit 5423bc6

Browse files
authored
Update errors1.rs - Add Result type signature as it is difficult for new comers to understand Generics and Error all at once. (#157)
Update errors1.rs - Add Result type signature as it is difficult for new comers to understand Generics and Error all at once.
2 parents 1f2ee8c + 187d2ad commit 5423bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/error_handling/errors1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mod tests {
6363
// `Option`.
6464

6565
// To make this change, you'll need to:
66-
// - update the return type in the function signature to be a Result that
66+
// - update the return type in the function signature to be a Result<String, String> that
6767
// could be the variants `Ok(String)` and `Err(String)`
6868
// - change the body of the function to return `Ok(stuff)` where it currently
6969
// returns `Some(stuff)`

0 commit comments

Comments
 (0)