summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2013-04-12 13:08:40 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2013-04-12 13:08:40 (GMT)
commit59d6d2dbebb933ee64b63f87b8a28a534d66b053 (patch)
treeceba423d5b5f8f3eab2fce21da8628fb94093d57
parentc2ecac4787a9cadabbb33c7aede405315ed55240 (diff)
downloadcpython-59d6d2dbebb933ee64b63f87b8a28a534d66b053.zip
cpython-59d6d2dbebb933ee64b63f87b8a28a534d66b053.tar.gz
cpython-59d6d2dbebb933ee64b63f87b8a28a534d66b053.tar.bz2
#17688: fix declaration for richcmp example in the docs.
Thanks to Daniel Mullner
-rw-r--r--Doc/extending/newtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 835a92e..cb20bce 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1233,7 +1233,7 @@ if an exception was set.
Here is a sample implementation, for a datatype that is considered equal if the
size of an internal pointer is equal::
- static int
+ static PyObject *
newdatatype_richcmp(PyObject *obj1, PyObject *obj2, int op)
{
PyObject *result;