]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in Object/listobject.c (GH-21079)
authorJeong Ukjae <JeongUkJae@gmail.com>
Mon, 29 Jun 2020 18:56:56 +0000 (03:56 +0900)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2020 18:56:56 +0000 (21:56 +0300)
Misc/NEWS.d/3.9.0a5.rst
Objects/listobject.c

index 01cbd4423426edb3e93e8c90f330313eea31389e..39e017768c3ad0b9db07fec4d4bef13e1dd8ff07 100644 (file)
@@ -176,7 +176,7 @@ convention. Patch by Dong-hee Na.
 .. section: Core and Builtins
 
 Chaged list overallocation strategy. It no longer overallocates if the new
-size is closer to overalocated size than to the old size and adds padding.
+size is closer to overallocated size than to the old size and adds padding.
 
 ..
 
index ab036154eacc23662bc6059863701c28b4081136..aac87ea1b61c9399b0cd5ec3e121be3e040610c3 100644 (file)
@@ -69,7 +69,7 @@ list_resize(PyListObject *self, Py_ssize_t newsize)
      *       is PY_SSIZE_T_MAX * (9 / 8) + 6 which always fits in a size_t.
      */
     new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3;
-    /* Do not overallocate if the new size is closer to overalocated size
+    /* Do not overallocate if the new size is closer to overallocated size
      * than to the old size.
      */
     if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize))