@@ -258,7 +258,8 @@ Create, Finish, Discard
258258
259259 If *size* is greater than zero, allocate *size* bytes, and set the
260260 writer size to *size*. The caller is responsible to write *size*
261- bytes using :c:func:`PyBytesWriter_GetData`. This function does not overallocate.
261+ bytes using :c:func:`PyBytesWriter_GetData`.
262+ This function does not overallocate.
262263
263264 On error, set an exception and return ``NULL``.
264265
@@ -348,8 +349,9 @@ Low-level API
348349.. c :function :: int PyBytesWriter_Resize (PyBytesWriter *writer, Py_ssize_t size)
349350
350351 Resize the writer to *size * bytes. It can be used to enlarge or to
351- shrink the writer. This function typically overallocates to achieve
352- amortized performance when resizing multiple times.
352+ shrink the writer.
353+ This function typically overallocates to achieve amortized performance when
354+ resizing multiple times.
353355
354356 Newly allocated bytes are left uninitialized.
355357
@@ -361,7 +363,8 @@ Low-level API
361363.. c :function :: int PyBytesWriter_Grow (PyBytesWriter *writer, Py_ssize_t grow)
362364
363365 Resize the writer by adding *grow * bytes to the current writer size.
364- Overallocate the writer.
366+ This function typically overallocates to achieve amortized performance when
367+ resizing multiple times.
365368
366369 Newly allocated bytes are left uninitialized.
367370
0 commit comments