Skip to content

Commit 7e65738

Browse files
committed
Wording
1 parent 866bd56 commit 7e65738

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/library/gc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The :mod:`gc` module provides the following functions:
111111
list) inside this generation;
112112

113113
* ``candidates`` is the total number of objects in this generation which were
114-
traversed and considered for collection;
114+
considered for collection and traversed;
115115

116116
* ``duration`` is the total time in seconds spent in collections for this
117117
generation.
@@ -323,7 +323,7 @@ values but should not rebind them):
323323
that could not be collected and were put in :data:`garbage`.
324324

325325
"candidates": When *phase* is "stop", the total number of objects in this
326-
generation which were traversed and considered for collection.
326+
generation which were considered for collection and traversed.
327327

328328
"duration": When *phase* is "stop", the time in seconds spent in the
329329
collection.

Include/internal/pycore_interp_structs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ struct gc_collection_stats {
179179
Py_ssize_t collected;
180180
/* total number of uncollectable objects (put into gc.garbage) */
181181
Py_ssize_t uncollectable;
182-
// Total number of objects traversed and considered for collection:
182+
// Total number of objects considered for collection and traversed:
183183
Py_ssize_t candidates;
184184
// Duration of the collection in seconds:
185185
double duration;
@@ -193,7 +193,7 @@ struct gc_generation_stats {
193193
Py_ssize_t collected;
194194
/* total number of uncollectable objects (put into gc.garbage) */
195195
Py_ssize_t uncollectable;
196-
// Total number of objects traversed and considered for collection:
196+
// Total number of objects considered for collection and traversed:
197197
Py_ssize_t candidates;
198198
// Duration of the collection in seconds:
199199
double duration;

0 commit comments

Comments
 (0)