Skip to content

Commit

Permalink
minor documentation typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Sep 21, 2024
1 parent 1dff7c4 commit 71dbf70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <inheritance>`, 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 <inheritance>`, consider
the following function that returns a ``Dog`` object as a ``Pet`` base pointer.

.. code-block:: cpp
Expand Down

0 comments on commit 71dbf70

Please sign in to comment.