summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/complex.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-21 11:48:30 (GMT)
committerGitHub <noreply@github.com>2023-07-21 11:48:30 (GMT)
commit6bde1b9f049e35e557068bd8c6034ee9c6fe61dc (patch)
tree10a0a9e40dc0b60405258ce1978fb9970c8c8e6c /Doc/c-api/complex.rst
parent0a57620887f9877398c44062539da3e58235f0e6 (diff)
downloadcpython-6bde1b9f049e35e557068bd8c6034ee9c6fe61dc.zip
cpython-6bde1b9f049e35e557068bd8c6034ee9c6fe61dc.tar.gz
cpython-6bde1b9f049e35e557068bd8c6034ee9c6fe61dc.tar.bz2
[3.11] gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920) (GH-106952)
(cherry picked from commit fcc816dbff7ca66c26f57a506e4d2330fe41d0ff)
Diffstat (limited to 'Doc/c-api/complex.rst')
-rw-r--r--Doc/c-api/complex.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/complex.rst b/Doc/c-api/complex.rst
index cb8b270..6679ce7 100644
--- a/Doc/c-api/complex.rst
+++ b/Doc/c-api/complex.rst
@@ -64,7 +64,7 @@ pointers. This is consistent throughout the API.
representation.
If *divisor* is null, this method returns zero and sets
- :c:data:`errno` to :c:data:`EDOM`.
+ :c:data:`errno` to :c:macro:`EDOM`.
.. c:function:: Py_complex _Py_c_pow(Py_complex num, Py_complex exp)
@@ -73,7 +73,7 @@ pointers. This is consistent throughout the API.
representation.
If *num* is null and *exp* is not a positive real number,
- this method returns zero and sets :c:data:`errno` to :c:data:`EDOM`.
+ this method returns zero and sets :c:data:`errno` to :c:macro:`EDOM`.
Complex Numbers as Python Objects