Skip to content

Commit

Permalink
error exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaopmorais committed Feb 20, 2024
1 parent 8253dc9 commit 9cef91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/13_error_handling/errors6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum ParsePosNonzeroError {
impl ParsePosNonzeroError {
fn from_creation(err: CreationError) -> ParsePosNonzeroError {
ParsePosNonzeroError::Creation(err)
}
}
// TODO: add another error conversion function here.
fn from_parseint(err: ParseIntError) -> ParsePosNonzeroError {
ParsePosNonzeroError::ParseInt((err))
Expand Down

0 comments on commit 9cef91a

Please sign in to comment.