Skip to content

Commit 567f352

Browse files
committed
fix spelling
change from 'reminder' to 'remainder' to match intent
1 parent 28d6d03 commit 567f352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

17-it-generator/columnize_iter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def columnize(
66
) -> Iterator[tuple[str, ...]]: # <1>
77
if num_columns == 0:
88
num_columns = round(len(sequence) ** 0.5)
9-
num_rows, reminder = divmod(len(sequence), num_columns)
10-
num_rows += bool(reminder)
9+
num_rows, remainder = divmod(len(sequence), num_columns)
10+
num_rows += bool(remainder)
1111
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
1212
# end::COLUMNIZE[]
1313

0 commit comments

Comments
 (0)