diff --git a/peps/pep-0782.rst b/peps/pep-0782.rst index 3114bc2fcd7..32a46ee3f6a 100644 --- a/peps/pep-0782.rst +++ b/peps/pep-0782.rst @@ -53,8 +53,8 @@ When creating a bytes string and the output size is unknown, one strategy is to allocate a short buffer and extend it (to the exact size) each time a larger write is needed. -This strategy is inefficient because it requires to enlarge the buffer -multiple timess. It's more efficient to overallocate the buffer the +This strategy is inefficient because it requires enlarging the buffer +multiple times. It's more efficient to overallocate the buffer the first time that a larger write is needed. It reduces the number of expensive ``realloc()`` operations which can imply a memory copy.