mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
docs: fix typo (#2405)
This commit is contained in:
parent
6404099712
commit
7dd2bdb0b3
@ -74,7 +74,7 @@ Note how ``print(p)`` produced a rather useless summary of our data structure in
|
|||||||
>>> print(p)
|
>>> print(p)
|
||||||
<example.Pet object at 0x10cd98060>
|
<example.Pet object at 0x10cd98060>
|
||||||
|
|
||||||
To address this, we could bind an utility function that returns a human-readable
|
To address this, we could bind a utility function that returns a human-readable
|
||||||
summary to the special method slot named ``__repr__``. Unfortunately, there is no
|
summary to the special method slot named ``__repr__``. Unfortunately, there is no
|
||||||
suitable functionality in the ``Pet`` data structure, and it would be nice if
|
suitable functionality in the ``Pet`` data structure, and it would be nice if
|
||||||
we did not have to change it. This can easily be accomplished by binding a
|
we did not have to change it. This can easily be accomplished by binding a
|
||||||
|
Loading…
Reference in New Issue
Block a user