Skip to content

Commit

Permalink
Minor readability improvement to the factor() recipe (GH-102971)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger authored Mar 23, 2023
1 parent b613208 commit 16f6165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/itertools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ which incur interpreter overhead.
n = quotient
if n == 1:
return
if n >= 2:
if n > 1:
yield n

def flatten(list_of_lists):
Expand Down

0 comments on commit 16f6165

Please sign in to comment.