summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/dict.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/dict.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/dict.rst')
-rw-r--r--Doc/c-api/dict.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index cfa5e13..b7225fa 100644
--- a/Doc/c-api/dict.rst
+++ b/Doc/c-api/dict.rst
@@ -72,7 +72,7 @@ Dictionary Objects
.. index:: single: PyUnicode_FromString()
Insert *value* into the dictionary *p* using *key* as a key. *key* should
- be a :c:type:`char\*`. The key object is created using
+ be a :c:type:`const char\*`. The key object is created using
``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on
failure.
@@ -107,7 +107,7 @@ Dictionary Objects
.. c:function:: PyObject* PyDict_GetItemString(PyObject *p, const char *key)
This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a
- :c:type:`char\*`, rather than a :c:type:`PyObject\*`.
+ :c:type:`const char\*`, rather than a :c:type:`PyObject\*`.
.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *default)