diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-21 11:48:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 11:48:30 (GMT) |
commit | 6bde1b9f049e35e557068bd8c6034ee9c6fe61dc (patch) | |
tree | 10a0a9e40dc0b60405258ce1978fb9970c8c8e6c /Doc/c-api/complex.rst | |
parent | 0a57620887f9877398c44062539da3e58235f0e6 (diff) | |
download | cpython-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.rst | 4 |
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 |