@@ -687,7 +687,7 @@ Export API
687687
688688.. versionadded:: 3.14
689689
690- .. c:struct :: PyLongLayout
690+ .. c:type :: PyLongLayout
691691
692692 Layout of an array of "digits" ("limbs" in the GMP terminology), used to
693693 represent absolute value for arbitrary precision integers.
@@ -727,15 +727,15 @@ Export API
727727
728728 Get the native layout of Python :class:`int` objects.
729729
730- See the :c:struct :`PyLongLayout` structure.
730+ See the :c:type :`PyLongLayout` structure.
731731
732732 The function must not be called before Python initialization nor after
733733 Python finalization. The returned layout is valid until Python is
734734 finalized. The layout is the same for all Python sub-interpreters
735735 in a process, and so it can be cached.
736736
737737
738- .. c:struct :: PyLongExport
738+ .. c:type :: PyLongExport
739739
740740 Export of a Python :class:`int` object.
741741
@@ -769,7 +769,7 @@ Export API
769769
770770 Export a Python :class: `int ` object.
771771
772- *export_long * must point to a :c:struct : `PyLongExport ` structure allocated
772+ *export_long * must point to a :c:type : `PyLongExport ` structure allocated
773773 by the caller. It must not be ``NULL ``.
774774
775775 On success, fill in *\* export_long * and return ``0 ``.
@@ -799,7 +799,7 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
799799
800800.. versionadded :: 3.14
801801
802- .. c :struct :: PyLongWriter
802+ .. c :type :: PyLongWriter
803803
804804 A Python :class: `int ` writer instance.
805805
@@ -827,7 +827,7 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
827827 The layout of *digits * is described by :c:func: `PyLong_GetNativeLayout `.
828828
829829 Digits must be in the range [``0 ``; ``(1 << bits_per_digit) - 1 ``]
830- (where the :c:struct : `~PyLongLayout.bits_per_digit ` is the number of bits
830+ (where the :c:type : `~PyLongLayout.bits_per_digit ` is the number of bits
831831 per digit).
832832 Any unused most significant digits must be set to ``0``.
833833
0 commit comments