]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: correctly link to code objects (#115214)
authorErlend E. Aasland <erlend@python.org>
Fri, 9 Feb 2024 14:11:36 +0000 (15:11 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2024 14:11:36 +0000 (15:11 +0100)
Doc/c-api/code.rst

index 5082b0cb6ad3f3e550eeb271289b6df472d104d7..11c12e685fcace49b54b925ff600450ee00f2efc 100644 (file)
@@ -22,12 +22,13 @@ bound into a function.
 .. c:var:: PyTypeObject PyCode_Type
 
    This is an instance of :c:type:`PyTypeObject` representing the Python
-   :class:`code` type.
+   :ref:`code object <code-objects>`.
 
 
 .. c:function:: int PyCode_Check(PyObject *co)
 
-   Return true if *co* is a :class:`code` object.  This function always succeeds.
+   Return true if *co* is a :ref:`code object <code-objects>`.
+   This function always succeeds.
 
 .. c:function:: int PyCode_GetNumFree(PyCodeObject *co)