mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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"
This commit is contained in:
parent
4afa7be32d
commit
22b8945d76
1 changed files with 1 additions and 1 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue