Skip to content

Commit 16f6165

Browse files
authored
Minor readability improvement to the factor() recipe (GH-102971)
1 parent b613208 commit 16f6165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/itertools.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ which incur interpreter overhead.
936936
n = quotient
937937
if n == 1:
938938
return
939-
if n >= 2:
939+
if n > 1:
940940
yield n
941941

942942
def flatten(list_of_lists):

0 commit comments

Comments
 (0)