summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-26 05:35:55 (GMT)
committerGitHub <noreply@github.com>2020-10-26 05:35:55 (GMT)
commit77a9ef1bbac7c56924be775857c94d7fc8eeb5f5 (patch)
tree38b5ece9bcee66b6bfcf516b415425b660df1b15 /Doc/library/functions.rst
parent8e980ecfb7b42063ed41d665288aff69f0ed7fdc (diff)
downloadcpython-77a9ef1bbac7c56924be775857c94d7fc8eeb5f5.zip
cpython-77a9ef1bbac7c56924be775857c94d7fc8eeb5f5.tar.gz
cpython-77a9ef1bbac7c56924be775857c94d7fc8eeb5f5.tar.bz2
Add a link to buffer protocol in bytearray() doc (GH-22675)
(cherry picked from commit 0f25c231b3a024e358c3e55d9aba2f7bcc49630c) Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com>
Diffstat (limited to 'Doc/library/functions.rst')
-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 76a0ba4..4f5fe6b 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -151,8 +151,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.