summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/module.rst
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2023-02-17 08:43:07 (GMT)
committerGitHub <noreply@github.com>2023-02-17 08:43:07 (GMT)
commita3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1 (patch)
tree16c8e80eb650030133f654ff0aac32fecec6d6eb /Doc/c-api/module.rst
parent984f8ab018f847fe8d66768af962f69ec0e81849 (diff)
downloadcpython-a3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1.zip
cpython-a3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1.tar.gz
cpython-a3bb7fbe7eecfae6bf7b2f0912f9b2b12fac8db1.tar.bz2
gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (#101976)
Diffstat (limited to 'Doc/c-api/module.rst')
-rw-r--r--Doc/c-api/module.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index e2ba157..c0351c8 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -388,7 +388,7 @@ objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and
.. c:function:: PyObject * PyModule_FromDefAndSpec(PyModuleDef *def, PyObject *spec)
- Create a new module object, given the definition in *module* and the
+ Create a new module object, given the definition in *def* and the
ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2`
with *module_api_version* set to :const:`PYTHON_API_VERSION`.
@@ -396,7 +396,7 @@ objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and
.. c:function:: PyObject * PyModule_FromDefAndSpec2(PyModuleDef *def, PyObject *spec, int module_api_version)
- Create a new module object, given the definition in *module* and the
+ Create a new module object, given the definition in *def* and the
ModuleSpec *spec*, assuming the API version *module_api_version*.
If that version does not match the version of the running interpreter,
a :exc:`RuntimeWarning` is emitted.