Fix typos in comments (GH-9905) · python/cpython@3bd0d62

GitHub

Original file line numberDiff line numberDiff line change@@ -504,7 +504,7 @@ move_unreachable(PyGC_Head *young, PyGC_Head *unreachable)

504504 (void*)young);

505505// relink gc_prev to prev element.

506506_PyGCHead_SET_PREV(gc, prev);

507-// gc is not COLLECTING state aftere here.

507+// gc is not COLLECTING state after here.

508508gc_clear_collecting(gc);

509509prev=gc;

510510 }

Original file line numberDiff line numberDiff line change@@ -3092,7 +3092,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)

30923092/* There was an exception and a True return.

30933093 * We must manually unwind the EXCEPT_HANDLER block

30943094 * which was created when the exception was caught,

3095- * otherwise the stack will be in an inconsisten state.

3095+ * otherwise the stack will be in an inconsistent state.

30963096 */

30973097PyTryBlock*b=PyFrame_BlockPop(f);

30983098assert(b->b_type==EXCEPT_HANDLER);

Original file line numberDiff line numberDiff line change@@ -49,15 +49,15 @@ struct _arena {

4949 */

5050block*a_head;

515152-/* Pointer to the block currently used for allocation. It's

52+/* Pointer to the block currently used for allocation. Its

5353 ab_next field should be NULL. If it is not-null after a

5454 call to block_alloc(), it means a new block has been allocated

5555 and a_cur should be reset to point it.

5656 */

5757block*a_cur;

58585959/* A Python list object containing references to all the PyObject

60- pointers associated with this area. They will be DECREFed

60+ pointers associated with this arena. They will be DECREFed

6161 when the arena is freed.

6262 */

6363PyObject*a_objects;