Skip to content

Commit d14999b

Browse files
Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
(cherry picked from commit d90a141) Co-authored-by: Sergey Fedoseev <[email protected]>
1 parent ca5e6aa commit d14999b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/dict.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Dictionary Objects
119119
To get error reporting use :c:func:`PyDict_GetItemWithError()` instead.
120120
121121
122-
.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *default)
122+
.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *defaultobj)
123123
124124
This is the same as the Python-level :meth:`dict.setdefault`. If present, it
125125
returns the value corresponding to *key* from the dictionary *p*. If the key

0 commit comments

Comments
 (0)