Skip to content

Commit 22b8945

Browse files
authored
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"
1 parent 4afa7be commit 22b8945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/collections.abc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ the required methods (unless those methods have been set to
8787

8888
class E:
8989
def __iter__(self): ...
90-
def __next__(next): ...
90+
def __next__(self): ...
9191

9292
.. doctest::
9393

0 commit comments

Comments
 (0)