Skip to content

Commit 9608bef

Browse files
authored
Fix typos in comments (GH-98375)
1 parent de3ece7 commit 9608bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/itertoolsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static PyTypeObject pairwise_type;
5858
/* Note: The built-in zip() function includes a "strict" argument
5959
that is needed because that function can silently truncate data
6060
and there is no easy way for a user to detect that condition.
61-
The same reasoning does not apply to batches() which never drops
61+
The same reasoning does not apply to batched() which never drops
6262
data. Instead, it produces a shorter list which can be handled
6363
as the user sees fit.
6464
*/
@@ -99,7 +99,7 @@ batched_new_impl(PyTypeObject *type, PyObject *iterable, Py_ssize_t n)
9999

100100
if (n < 1) {
101101
/* We could define the n==0 case to return an empty iterator
102-
but that is add odds with the idea that batching should
102+
but that is at odds with the idea that batching should
103103
never throw-away input data.
104104
*/
105105
PyErr_SetString(PyExc_ValueError, "n must be at least one");

0 commit comments

Comments
 (0)