Skip to content

Commit 8c1f5ab

Browse files
should -> must
1 parent bd58824 commit 8c1f5ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/bytes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ called with a non-bytes parameter.
129129
130130
.. note::
131131
If the object implements the buffer protocol, then the buffer
132-
should not be mutated while the bytes object is being created.
132+
must not be mutated while the bytes object is being created.
133133
134134
135135
.. c:function:: Py_ssize_t PyBytes_Size(PyObject *o)
@@ -191,7 +191,7 @@ called with a non-bytes parameter.
191191
192192
.. note::
193193
If *newpart* implements the buffer protocol, then the buffer
194-
should not be mutated while the new bytes object is being created.
194+
must not be mutated while the new bytes object is being created.
195195
196196
.. c:function:: void PyBytes_ConcatAndDel(PyObject **bytes, PyObject *newpart)
197197
@@ -201,7 +201,7 @@ called with a non-bytes parameter.
201201
202202
.. note::
203203
If *newpart* implements the buffer protocol, then the buffer
204-
should not be mutated while the new bytes object is being created.
204+
must not be mutated while the new bytes object is being created.
205205
206206
207207
.. c:function:: PyObject* PyBytes_Join(PyObject *sep, PyObject *iterable)
@@ -223,7 +223,7 @@ called with a non-bytes parameter.
223223
224224
.. note::
225225
If *iterable* objects implement the buffer protocol, then the buffers
226-
should not be mutated while the new bytes object is being created.
226+
must not be mutated while the new bytes object is being created.
227227
228228
.. c:function:: int _PyBytes_Resize(PyObject **bytes, Py_ssize_t newsize)
229229

0 commit comments

Comments
 (0)