diff --git a/docs/classes.rst b/docs/classes.rst index 0c687b7c5..c0c53135b 100644 --- a/docs/classes.rst +++ b/docs/classes.rst @@ -482,7 +482,7 @@ The binding code for this example looks as follows: .value("Cat", Pet::Kind::Cat) .export_values(); - py::class_ attributes(pet, "Attributes") + py::class_(pet, "Attributes") .def(py::init<>()) .def_readwrite("age", &Pet::Attributes::age);