Skip to content

Commit

Permalink
Fix the limited C API cross-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 26, 2023
1 parent 2e3b673 commit ff55027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions development-tools/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ The CLI supports the following options:

.. option:: --limited

Use the :ref:`Limited API <limited-c-api>` to parse arguments in the generated C code.
Use the :ref:`Limited API <python:limited-c-api>` to parse arguments in the generated C code.
See :ref:`clinic-howto-limited-capi`.

.. option:: FILE ...
Expand Down Expand Up @@ -1911,7 +1911,7 @@ How to use the Limited C API

If Argument Clinic :term:`input` is located within a C source file
that contains ``#define Py_LIMITED_API``, Argument Clinic will generate C code
that uses the :ref:`Limited API <limited-c-api>` to parse arguments. The
that uses the :ref:`Limited API <python:limited-c-api>` to parse arguments. The
advantage of this is that the generated code will not use private functions.
However, this *can* result in Argument Clinic generating less efficient code
in some cases. The extent of the performance penalty will depend
Expand Down

0 comments on commit ff55027

Please sign in to comment.