diff --git a/src/class/methods.rs b/src/class/methods.rs index 5f86d321..b31e9163 100644 --- a/src/class/methods.rs +++ b/src/class/methods.rs @@ -133,7 +133,7 @@ pub trait PyMethodsInventory: inventory::Collect { fn get_methods(&self) -> &'static [PyMethodDefType]; } -/// The implementation of tis trait defines which methods a Python type has. +/// The implementation of this trait defines which methods a Python type has. /// /// For pyclass derived structs this is implemented by collecting all impl blocks through inventory pub trait PyMethodsProtocol { diff --git a/src/instance.rs b/src/instance.rs index 7bf4b650..1d39c49d 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -15,7 +15,7 @@ use std::ptr::NonNull; /// Types that are built into the Python interpreter. /// -/// PyO3 is designed in a way that that all references to those types are bound +/// PyO3 is designed in a way that all references to those types are bound /// to the GIL, which is why you can get a token from all references of those /// types. pub unsafe trait PyNativeType: Sized {