mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-19 21:23:26 +08: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)
|
||||
<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
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user