Fix exception reference error

:exc: isn't valid.
This commit is contained in:
Jason Rhinelander 2017-05-26 23:20:48 -04:00
parent 39b9e04be8
commit 4f9ee6e430

View File

@ -432,7 +432,7 @@ To explicitly enable or disable this behaviour, using the
}, py::arg("cat").none(false));
With the above, the Python call ``bark(None)`` will return the string ``"(no
dog)"``, while attempting to call ``meow(None)`` will throw a :exc:`TypeError`:
dog)"``, while attempting to call ``meow(None)`` will raise a ``TypeError``:
.. code-block:: pycon