Skip to content

Commit ef6f091

Browse files
committed
GH-157724: Comment typo fixes ONLY for gc.c and gc_free_threading.c (no code changes)
- gc.c - At https://github.com/python/cpython/blob/f8bbe696f152d302e7eb3eeb0587a1933cae59fc/Python/gc.c#L3 fix "infromation" to "information" - At https://github.com/python/cpython/blob/f8bbe696f152d302e7eb3eeb0587a1933cae59fc/Python/gc.c#L773 fix "suble" to "subtle" - gc_free_threading.c - At https://github.com/python/cpython/blob/f8bbe696f152d302e7eb3eeb0587a1933cae59fc/Python/gc_free_threading.c#L527 fix "intructions" to "instructions"
1 parent c9df857 commit ef6f091

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Python/gc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This implements the reference cycle garbage collector.
22
// The Python module interface to the collector is in gcmodule.c.
3-
// See InternalDocs/garbage_collector.md for more infromation.
3+
// See InternalDocs/garbage_collector.md for more information.
44

55
#include "Python.h"
66
#include "pycore_ceval.h" // _Py_set_eval_breaker_bit()
@@ -770,7 +770,7 @@ move_legacy_finalizer_reachable(PyGC_Head *finalizers)
770770
* whose callbacks must be invoked. See gc_weakref.txt for overview & some
771771
* details.
772772
*
773-
* The clearing of weakrefs is suble and must be done carefully, as there was
773+
* The clearing of weakrefs is subtle and must be done carefully, as there were
774774
* previous bugs related to this. First, weakrefs to the unreachable set of
775775
* objects must be cleared before we start calling `tp_clear`. If we don't,
776776
* those weakrefs can reveal unreachable objects to Python-level code and that

‎Python/gc_free_threading.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static_assert(BUFFER_HI < BUFFER_SIZE &&
524524
BUFFER_LO > 0,
525525
"Invalid prefetch buffer level settings.");
526526

527-
// Prefetch intructions will fetch the line of data from memory that
527+
// Prefetch instructions will fetch the line of data from memory that
528528
// contains the byte specified with the source operand to a location in
529529
// the cache hierarchy specified by a locality hint. The instruction
530530
// is only a hint and the CPU is free to ignore it. Instructions and

0 commit comments

Comments
 (0)