Skip to content

Commit 0f25c23

Browse files
authored
Add a link to buffer protocol in bytearray() doc (GH-22675)
1 parent c0590c0 commit 0f25c23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ are always available. They are listed here in alphabetical order.
164164
* If it is an *integer*, the array will have that size and will be
165165
initialized with null bytes.
166166

167-
* If it is an object conforming to the *buffer* interface, a read-only buffer
168-
of the object will be used to initialize the bytes array.
167+
* If it is an object conforming to the :ref:`buffer interface <bufferobjects>`,
168+
a read-only buffer of the object will be used to initialize the bytes array.
169169

170170
* If it is an *iterable*, it must be an iterable of integers in the range
171171
``0 <= x < 256``, which are used as the initial contents of the array.

0 commit comments

Comments
 (0)