Merge pull request #1223 from davidhewitt/tweak-downcast-error-doc

Tweak doc for PyDowncastError
This commit is contained in:
David Hewitt 2020-10-10 18:39:53 +01:00 committed by GitHub
commit 8641852fa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ unsafe impl Sync for PyErr {}
/// Represents the result of a Python call.
pub type PyResult<T> = Result<T, PyErr>;
/// Marker type that indicates an error while downcasting
/// Error that indicates a failure to convert a PyAny to a more specific Python type.
#[derive(Debug)]
pub struct PyDowncastError<'a> {
from: &'a PyAny,