summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/tuple.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-30 07:01:03 (GMT)
committerGitHub <noreply@github.com>2017-03-30 07:01:03 (GMT)
commit84b8e92e463bd6a5174bd3e5a6543580f6319c57 (patch)
treed8aeb7d0360e2e538ccafb0ecd26ea52a58d7aff /Doc/c-api/tuple.rst
parent576def096ec7b64814e038f03290031f172886c3 (diff)
downloadcpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.zip
cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.gz
cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.bz2
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
Diffstat (limited to 'Doc/c-api/tuple.rst')
-rw-r--r--Doc/c-api/tuple.rst24
1 files changed, 12 insertions, 12 deletions
diff --git a/Doc/c-api/tuple.rst b/Doc/c-api/tuple.rst
index 3922d50..a66832c 100644
--- a/Doc/c-api/tuple.rst
+++ b/Doc/c-api/tuple.rst
@@ -144,9 +144,9 @@ type.
+-------------------+------------------------------+------------------------------------+
| Field | C Type | Meaning |
+===================+==============================+====================================+
- | ``name`` | ``char *`` | name of the struct sequence type |
+ | ``name`` | ``const char *`` | name of the struct sequence type |
+-------------------+------------------------------+------------------------------------+
- | ``doc`` | ``char *`` | pointer to docstring for the type |
+ | ``doc`` | ``const char *`` | pointer to docstring for the type |
| | | or NULL to omit |
+-------------------+------------------------------+------------------------------------+
| ``fields`` | ``PyStructSequence_Field *`` | pointer to *NULL*-terminated array |
@@ -164,16 +164,16 @@ type.
:attr:`fields` array of the :c:type:`PyStructSequence_Desc` determines which
field of the struct sequence is described.
- +-----------+---------------+--------------------------------------+
- | Field | C Type | Meaning |
- +===========+===============+======================================+
- | ``name`` | ``char *`` | name for the field or *NULL* to end |
- | | | the list of named fields, set to |
- | | | PyStructSequence_UnnamedField to |
- | | | leave unnamed |
- +-----------+---------------+--------------------------------------+
- | ``doc`` | ``char *`` | field docstring or *NULL* to omit |
- +-----------+---------------+--------------------------------------+
+ +-----------+------------------+--------------------------------------+
+ | Field | C Type | Meaning |
+ +===========+==================+======================================+
+ | ``name`` | ``const char *`` | name for the field or *NULL* to end |
+ | | | the list of named fields, set to |
+ | | | PyStructSequence_UnnamedField to |
+ | | | leave unnamed |
+ +-----------+------------------+--------------------------------------+
+ | ``doc`` | ``const char *`` | field docstring or *NULL* to omit |
+ +-----------+------------------+--------------------------------------+
.. c:var:: char* PyStructSequence_UnnamedField