docs: fixed typo in error_handling.md
This commit is contained in:
parent
86ce4d1a13
commit
4275abff0c
|
@ -194,7 +194,7 @@ struct MyOtherError(OtherError);
|
||||||
|
|
||||||
impl From<MyOtherError> for PyErr {
|
impl From<MyOtherError> for PyErr {
|
||||||
fn from(error: MyOtherError) -> Self {
|
fn from(error: MyOtherError) -> Self {
|
||||||
PyValueError::new_err(self.0.message())
|
PyValueError::new_err(error.0.message())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue