doc(pyclass_init) Fix typos

This commit is contained in:
Ivan Enderlin 2020-08-27 13:27:16 +02:00 committed by GitHub
parent 16ef96904a
commit fee01a125b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ pub struct PyClassInitializer<T: PyClass> {
}
impl<T: PyClass> PyClassInitializer<T> {
/// Constract new initialzer from value `T` and base class' initializer.
/// Construct new initializer from value `T` and base class' initializer.
///
/// We recommend to mainly use `add_subclass`, instead of directly call `new`.
pub fn new(init: T, super_init: <T::BaseType as PyTypeInfo>::Initializer) -> Self {