summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/buffer.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-08-13 17:16:02 (GMT)
committerGitHub <noreply@github.com>2020-08-13 17:16:02 (GMT)
commit46d10b1237c67ff8347f533eda6a5468d098f7eb (patch)
tree5f202a738a0f01b2cb5c5cb365415c8a85057b95 /Doc/c-api/buffer.rst
parent43577c01a2ab49122db696e9eaec6cb31d11cc81 (diff)
downloadcpython-46d10b1237c67ff8347f533eda6a5468d098f7eb.zip
cpython-46d10b1237c67ff8347f533eda6a5468d098f7eb.tar.gz
cpython-46d10b1237c67ff8347f533eda6a5468d098f7eb.tar.bz2
bpo-40204: Fix duplicates in the documentation (GH-21857)
Fix two Sphinx 3 issues: Doc/c-api/buffer.rst:304: WARNING: Duplicate C declaration, also defined in 'c-api/buffer'. Declaration is 'PyBUF_ND'. Doc/c-api/unicode.rst:1603: WARNING: Duplicate C declaration, also defined in 'c-api/unicode'. Declaration is 'PyObject* PyUnicode_Translate(PyObject *str, PyObject *table, const char *errors)'.
Diffstat (limited to 'Doc/c-api/buffer.rst')
-rw-r--r--Doc/c-api/buffer.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
index fc1430e..ddb28af 100644
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -301,7 +301,7 @@ must be C-contiguous.
+-----------------------------------+-------+---------+------------+--------+
| .. c:macro:: PyBUF_ANY_CONTIGUOUS | yes | yes | NULL | C or F |
+-----------------------------------+-------+---------+------------+--------+
-| .. c:macro:: PyBUF_ND | yes | NULL | NULL | C |
+| :c:macro:`PyBUF_ND` | yes | NULL | NULL | C |
+-----------------------------------+-------+---------+------------+--------+