diff --git a/docs/classes.rst b/docs/classes.rst index 94662ff5..87db53f6 100644 --- a/docs/classes.rst +++ b/docs/classes.rst @@ -99,9 +99,9 @@ Instances expose fields and methods of both types as expected: Automatic downcasting --------------------- -nanobind obeys type signature when returning regular non-polymorphic C++ objects: -building on the :ref:`previous example `, consider the following -function that returns a ``Dog`` object as a ``Pet`` base pointer. +nanobind obeys signatures when returning regular non-polymorphic C++ objects +from functions: building on the :ref:`previous example `, consider +the following function that returns a ``Dog`` object as a ``Pet`` base pointer. .. code-block:: cpp