diff --git a/doc/tutorial/doc/exception_translation.html b/doc/tutorial/doc/exception_translation.html index 9ec6bc86..aaab2ec7 100644 --- a/doc/tutorial/doc/exception_translation.html +++ b/doc/tutorial/doc/exception_translation.html @@ -33,16 +33,16 @@ then gives up:

Users may provide custom translation. Here's an example:

-
-    struct PodBayDoorException;
-    void translator(PodBayDoorException& x) {
+
+    struct PodBayDoorException;
+    void translator(PodBayDoorException const& x) {
         PyErr_SetString(PyExc_UserWarning, "I'm sorry Dave...");
-    }
-    BOOST_PYTHON_MODULE(kubrick) {
+    }
+    BOOST_PYTHON_MODULE(kubrick) {
          register_exception_translator<
               PodBayDoorException>(translator);
-         ...
-
+ ... +
diff --git a/doc/tutorial/doc/quickstart.txt b/doc/tutorial/doc/quickstart.txt index 73da42c7..a67e196e 100644 --- a/doc/tutorial/doc/quickstart.txt +++ b/doc/tutorial/doc/quickstart.txt @@ -1245,7 +1245,7 @@ then gives up: Users may provide custom translation. Here's an example: struct PodBayDoorException; - void translator(PodBayDoorException& x) { + void translator(PodBayDoorException const& x) { PyErr_SetString(PyExc_UserWarning, "I'm sorry Dave..."); } BOOST_PYTHON_MODULE(kubrick) {