Skip to content

Commit

Permalink
docs: fixed typo in error_handling.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrob95 authored and davidhewitt committed Sep 29, 2022
1 parent faf1f0e commit de980c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/function/error_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct MyOtherError(OtherError);

impl From<MyOtherError> for PyErr {
fn from(error: MyOtherError) -> Self {
PyValueError::new_err(self.0.message())
PyValueError::new_err(error.0.message())
}
}

Expand Down

0 comments on commit de980c7

Please sign in to comment.