summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/mapping.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:11:21 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:11:21 (GMT)
commit03863d2b290d0856d7647a0275a73b55b6589fa7 (patch)
treeb108c989aeb591eb444722e7f0046c75689182ab /Doc/c-api/mapping.rst
parent5fa22fc088ac44c5652107c7c17cda01eaa84a28 (diff)
downloadcpython-03863d2b290d0856d7647a0275a73b55b6589fa7.zip
cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.tar.gz
cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.tar.bz2
Fixed documentation of functions with const char* arguments.
Diffstat (limited to 'Doc/c-api/mapping.rst')
-rw-r--r--Doc/c-api/mapping.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/mapping.rst b/Doc/c-api/mapping.rst
index 2803fd0..e341047 100644
--- a/Doc/c-api/mapping.rst
+++ b/Doc/c-api/mapping.rst
@@ -34,7 +34,7 @@ Mapping Protocol
failure. This is equivalent to the Python statement ``del o[key]``.
-.. c:function:: int PyMapping_HasKeyString(PyObject *o, char *key)
+.. c:function:: int PyMapping_HasKeyString(PyObject *o, const char *key)
On success, return ``1`` if the mapping object has the key *key* and ``0``
otherwise. This is equivalent to the Python expression ``key in o``.