]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138659: Typo in the gc module docstring (#138660)
authorAalaap Dey <65075436+axdeyy@users.noreply.github.com>
Mon, 8 Sep 2025 14:16:33 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 14:16:33 +0000 (14:16 +0000)
docs(gc): fix typo in get_threshold() docstring

Removes a duplicate "the" from the docstring for the `gc.get_threshold()` function.

Modules/gcmodule.c

index 02839ca3c99beff0c5867098790171c0d5a5fdfd..19b3f2a2eb61470f8c66ed38051da0973207cb11 100644 (file)
@@ -478,7 +478,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"