From 4f9ee6e430048ef87801423eeeb2506a8145d7ec Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Fri, 26 May 2017 23:20:48 -0400 Subject: [PATCH] Fix exception reference error :exc: isn't valid. --- docs/advanced/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/functions.rst b/docs/advanced/functions.rst index 3b3eef92e..a7807dcf0 100644 --- a/docs/advanced/functions.rst +++ b/docs/advanced/functions.rst @@ -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