From ce9d6e2c0d02019c957ad48dad86a06d54103565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Becker?= Date: Mon, 7 May 2018 15:18:08 +0200 Subject: [PATCH] Fixed typo in classes.rst (#1388) Fixed typos (erroneous `;`) in `classes.rst`. --- docs/advanced/classes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);