[Python-checkins] cpython (3.5): fix name of keyword parameter to gc.collect() (closes #28525)

benjamin.peterson python-checkins at python.org
Tue Oct 25 02:00:36 EDT 2016


https://hg.python.org/cpython/rev/05b5e1aaedc5
changeset:   104683:05b5e1aaedc5
branch:      3.5
parent:      104680:e928afbcc18a
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Oct 24 23:00:03 2016 -0700
summary:
  fix name of keyword parameter to gc.collect() (closes #28525)

Patch from vierja.

files:
  Doc/library/gc.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst
--- a/Doc/library/gc.rst
+++ b/Doc/library/gc.rst
@@ -38,7 +38,7 @@
    Returns true if automatic collection is enabled.
 
 
-.. function:: collect(generations=2)
+.. function:: collect(generation=2)
 
    With no arguments, run a full collection.  The optional argument *generation*
    may be an integer specifying which generation to collect (from 0 to 2).  A

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list