Apply suggestions from code review

Co-Authored-By: Alexander Niederbühl <a.niederbuehl@gmail.com>
This commit is contained in:
Georg Brandl 2020-03-17 20:06:09 +01:00 committed by GitHub
parent b7d5f9097b
commit e026013321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {