Skip to content

Commit 68743e4

Browse files
miss-islingtonlbt
andauthored
[3.12] Fix typo in collections.abc docs example (GH-113310) (#113311)
Fix typo in collections.abc docs example (GH-113310) Calling the instance reference arg for the __next__ method, "next", seems misleading as it would normally just be "self" (cherry picked from commit 22b8945) Co-authored-by: David Greaves <[email protected]>
1 parent 376b46d commit 68743e4

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)