Skip to content

Commit 3bd0d62

Browse files
tnqnvstinner
authored andcommitted
Fix typos in comments (GH-9905)
1 parent f192aeb commit 3bd0d62

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Modules/gcmodule.c

Lines changed: 1 addition & 1 deletion
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.
508508
gc_clear_collecting(gc);
509509
prev = gc;
510510
}

Python/ceval.c

Lines changed: 1 addition & 1 deletion
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
*/
30973097
PyTryBlock *b = PyFrame_BlockPop(f);
30983098
assert(b->b_type == EXCEPT_HANDLER);

Python/pyarena.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ struct _arena {
4949
*/
5050
block *a_head;
5151

52-
/* 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
*/
5757
block *a_cur;
5858

5959
/* 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
*/
6363
PyObject *a_objects;

0 commit comments

Comments
 (0)