Update guide/src/class.md

Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
This commit is contained in:
Samuel Pastva 2023-10-26 18:58:43 -05:00 committed by GitHub
parent 48c90d9586
commit fc787eabd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ impl SubSubClass {
}
#[staticmethod]
fn dynamic_type(py: Python<'_>, val: usize) -> PyResult<PyObject> {
fn factory_method(py: Python<'_>, val: usize) -> PyResult<PyObject> {
let base = PyClassInitializer::from(BaseClass::new());
let sub = base.add_subclass(SubClass { val2: val });
if val % 2 == 0 {