Skip to content

Commit 79403f2

Browse files
committed
Update
1 parent 07e69a0 commit 79403f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

peps/pep-0782.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ Create, Finish, Discard
111111
Py_ssize_t size = (char*)buf - (char*)PyBytesWriter_GetData(writer);
112112
return PyBytesWriter_FinishWithSize(writer, size);
113113
114-
Set an exception and return ``NULL`` if *buf* pointer is invalid:
115-
outside the internal buffer bounds.
114+
Set an exception and return ``NULL`` if *buf* pointer is outside the
115+
internal buffer bounds.
116116
117117
.. c:function:: void PyBytesWriter_Discard(PyBytesWriter *writer)
118118
@@ -233,7 +233,7 @@ Examples
233233
High-level API
234234
--------------
235235
236-
Create the bytes ``b"Hello World!"``::
236+
Create the bytes string ``b"Hello World!"``::
237237
238238
PyObject* hello_world(void)
239239
{
@@ -277,7 +277,7 @@ GrowAndUpdatePointer() example
277277
278278
Example using a pointer to write bytes and to track the written size.
279279
280-
Create the string ``"Hello World"``::
280+
Create the bytes string ``b"Hello World"``::
281281
282282
PyObject* grow_example(void)
283283
{

0 commit comments

Comments
 (0)