]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (#101976)
authorOleg Iarygin <oleg@arhadthedev.net>
Fri, 17 Feb 2023 08:43:07 +0000 (12:43 +0400)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2023 08:43:07 +0000 (09:43 +0100)
Doc/c-api/module.rst

index e2ba157b32c7d99868387c4405f9acd22a49b6f9..c0351c8a6c72aa88e19d169c44bc0db45a0a5756 100644 (file)
@@ -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.