summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2022-10-18 02:01:28 (GMT)
committerGitHub <noreply@github.com>2022-10-18 02:01:28 (GMT)
commit9608bef84afd797ba6d16ec97439909f2f0d1095 (patch)
treefeaa905839b0568351e097b5a10619cd066934e0 /Modules/itertoolsmodule.c
parentde3ece769a8bc10c207a648c8a446f520504fa7e (diff)
downloadcpython-9608bef84afd797ba6d16ec97439909f2f0d1095.zip
cpython-9608bef84afd797ba6d16ec97439909f2f0d1095.tar.gz
cpython-9608bef84afd797ba6d16ec97439909f2f0d1095.tar.bz2
Fix typos in comments (GH-98375)
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 99dc30e..a5bbba1 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -58,7 +58,7 @@ static PyTypeObject pairwise_type;
/* Note: The built-in zip() function includes a "strict" argument
that is needed because that function can silently truncate data
and there is no easy way for a user to detect that condition.
- The same reasoning does not apply to batches() which never drops
+ The same reasoning does not apply to batched() which never drops
data. Instead, it produces a shorter list which can be handled
as the user sees fit.
*/
@@ -99,7 +99,7 @@ batched_new_impl(PyTypeObject *type, PyObject *iterable, Py_ssize_t n)
if (n < 1) {
/* We could define the n==0 case to return an empty iterator
- but that is add odds with the idea that batching should
+ but that is at odds with the idea that batching should
never throw-away input data.
*/
PyErr_SetString(PyExc_ValueError, "n must be at least one");