diff --git a/docs/advanced/classes.rst b/docs/advanced/classes.rst index 8e4485eec..c7dbc6762 100644 --- a/docs/advanced/classes.rst +++ b/docs/advanced/classes.rst @@ -46,7 +46,7 @@ Normally, the binding code for these classes would look as follows: .. code-block:: cpp PYBIND11_MODULE(example, m) { - py::class_(m, "Animal"); + py::class_(m, "Animal") .def("go", &Animal::go); py::class_(m, "Dog") @@ -95,7 +95,7 @@ The binding code also needs a few minor adaptations (highlighted): :emphasize-lines: 2,3 PYBIND11_MODULE(example, m) { - py::class_(m, "Animal"); + py::class_(m, "Animal") .def(py::init<>()) .def("go", &Animal::go);