]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138659: Typo in the gc module docstring (GH-138660) (#138662)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Sep 2025 14:41:34 +0000 (16:41 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 14:41:34 +0000 (14:41 +0000)
gh-138659: Typo in the gc module docstring (GH-138660)

docs(gc): fix typo in get_threshold() docstring

Removes a duplicate "the" from the docstring for the `gc.get_threshold()` function.
(cherry picked from commit c006a623e73d2368ec653e19c769706885161053)

Co-authored-by: Aalaap Dey <65075436+axdeyy@users.noreply.github.com>
Modules/gcmodule.c

index ad13496b06deafeaddfa1625a310ecbb79ee67c9..a09c4856f1166df6f3c618ee95e2413667901bed 100644 (file)
@@ -476,7 +476,7 @@ PyDoc_STRVAR(gc__doc__,
 "set_debug() -- Set debugging flags.\n"
 "get_debug() -- Get debugging flags.\n"
 "set_threshold() -- Set the collection thresholds.\n"
-"get_threshold() -- Return the current the collection thresholds.\n"
+"get_threshold() -- Return the current collection thresholds.\n"
 "get_objects() -- Return a list of all objects tracked by the collector.\n"
 "is_tracked() -- Returns true if a given object is tracked.\n"
 "is_finalized() -- Returns true if a given object has been already finalized.\n"