[Python-checkins] cpython: Fix return type in doc of PyStructSequence_InitType2.

r.david.murray python-checkins at python.org
Mon Feb 24 21:52:23 CET 2014


http://hg.python.org/cpython/rev/3154794a9a57
changeset:   89381:3154794a9a57
user:        R David Murray <rdmurray at bitdance.com>
date:        Mon Feb 24 15:51:57 2014 -0500
summary:
  Fix return type in doc of PyStructSequence_InitType2.

files:
  Doc/c-api/tuple.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
--- a/Doc/c-api/tuple.rst
+++ b/Doc/c-api/tuple.rst
@@ -129,7 +129,7 @@
    Initializes a struct sequence type *type* from *desc* in place.
 
 
-.. c:function:: void PyStructSequence_InitType2(PyTypeObject *type, PyStructSequence_Desc *desc)
+.. c:function:: int PyStructSequence_InitType2(PyTypeObject *type, PyStructSequence_Desc *desc)
 
    The same as ``PyStructSequence_InitType``, but returns ``0`` on success and ``-1`` on
    failure.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list