diff options
author | David Greaves <david@dgreaves.com> | 2023-12-20 09:51:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 09:51:16 (GMT) |
commit | 22b8945d7678be86f801ca54f004a5dba2006835 (patch) | |
tree | e3138ed9b0a86db36b2c591c688f205733dada3f | |
parent | 4afa7be32da32fac2a2bcde4b881db174e81240c (diff) | |
download | cpython-22b8945d7678be86f801ca54f004a5dba2006835.zip cpython-22b8945d7678be86f801ca54f004a5dba2006835.tar.gz cpython-22b8945d7678be86f801ca54f004a5dba2006835.tar.bz2 |
Fix typo in collections.abc docs example (#113310)
Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self"
-rw-r--r-- | Doc/library/collections.abc.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index e0c72ff..582bb18 100644 --- a/Doc/library/collections.abc.rst +++ b/Doc/library/collections.abc.rst @@ -87,7 +87,7 @@ the required methods (unless those methods have been set to class E: def __iter__(self): ... - def __next__(next): ... + def __next__(self): ... .. doctest:: |