summaryrefslogtreecommitdiff
path: root/Doc/c-api
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-02-25 19:52:40 +0500
committerSerhiy Storchaka <storchaka@gmail.com>2019-02-25 16:52:40 +0200
commitd90a141bb947b68601f8d1f37bc98f7b524f0e01 (patch)
tree2c14a4ec7fd855ebd22647894359c3bf1977e814 /Doc/c-api
parent16323cb2c3d315e02637cebebdc5ff46be32ecdf (diff)
downloadcpython-git-d90a141bb947b68601f8d1f37bc98f7b524f0e01.tar.gz
Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/dict.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index 4e55c1a977..0ced5a5fd0 100644
--- a/Doc/c-api/dict.rst
+++ b/Doc/c-api/dict.rst
@@ -119,7 +119,7 @@ Dictionary Objects
To get error reporting use :c:func:`PyDict_GetItemWithError()` instead.
-.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *default)
+.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *defaultobj)
This is the same as the Python-level :meth:`dict.setdefault`. If present, it
returns the value corresponding to *key* from the dictionary *p*. If the key