diff --git a/guide/src/class.md b/guide/src/class.md index bb6004cd..7ce75d5b 100644 --- a/guide/src/class.md +++ b/guide/src/class.md @@ -339,7 +339,7 @@ impl SubSubClass { } #[staticmethod] - fn dynamic_type(py: Python<'_>, val: usize) -> PyResult { + fn factory_method(py: Python<'_>, val: usize) -> PyResult { let base = PyClassInitializer::from(BaseClass::new()); let sub = base.add_subclass(SubClass { val2: val }); if val % 2 == 0 {