summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine <43954001+awecx@users.noreply.github.com>2020-10-26 05:26:34 (GMT)
committerGitHub <noreply@github.com>2020-10-26 05:26:34 (GMT)
commit0f25c231b3a024e358c3e55d9aba2f7bcc49630c (patch)
treebb687a0763a9aa8f4db9d96b75928d585ba36929
parentc0590c0033e86f98cdf5f2ca6898656f98ab4053 (diff)
downloadcpython-0f25c231b3a024e358c3e55d9aba2f7bcc49630c.zip
cpython-0f25c231b3a024e358c3e55d9aba2f7bcc49630c.tar.gz
cpython-0f25c231b3a024e358c3e55d9aba2f7bcc49630c.tar.bz2
Add a link to buffer protocol in bytearray() doc (GH-22675)
-rw-r--r--Doc/library/functions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index b33aa81..52a1512 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -164,8 +164,8 @@ are always available. They are listed here in alphabetical order.
* If it is an *integer*, the array will have that size and will be
initialized with null bytes.
- * If it is an object conforming to the *buffer* interface, a read-only buffer
- of the object will be used to initialize the bytes array.
+ * If it is an object conforming to the :ref:`buffer interface <bufferobjects>`,
+ a read-only buffer of the object will be used to initialize the bytes array.
* If it is an *iterable*, it must be an iterable of integers in the range
``0 <= x < 256``, which are used as the initial contents of the array.