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