summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-12-08 13:47:22 (GMT)
committerGitHub <noreply@github.com>2024-12-08 13:47:22 (GMT)
commit8fa5ecec01337215bc7baa62c9c16488ecd854fb (patch)
treec0ba623d007fec80d26e71976e0f75b6bb724636 /Objects
parent1503fc8f88d4903e61f76a78a30bcd581b0ee0cd (diff)
downloadcpython-8fa5ecec01337215bc7baa62c9c16488ecd854fb.zip
cpython-8fa5ecec01337215bc7baa62c9c16488ecd854fb.tar.gz
cpython-8fa5ecec01337215bc7baa62c9c16488ecd854fb.tar.bz2
gh-123378: fix post-merge typos in comments and NEWS (#127739)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 124b591..287cbc2 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -2712,7 +2712,7 @@ set_unicodefromstring(PyObject **attr, const char *value)
* Adjust the (inclusive) 'start' value of a UnicodeError object.
*
* The 'start' can be negative or not, but when adjusting the value,
- * we clip it in [0, max(0, objlen - 1)] but do not intepret it as
+ * we clip it in [0, max(0, objlen - 1)] and do not interpret it as
* a relative offset.
*/
static inline Py_ssize_t
@@ -2732,8 +2732,8 @@ unicode_error_adjust_start(Py_ssize_t start, Py_ssize_t objlen)
* Adjust the (exclusive) 'end' value of a UnicodeError object.
*
* The 'end' can be negative or not, but when adjusting the value,
- * we clip it in [min(1, objlen), max(min(1, objlen), objlen)] but
- * do not intepret it as a relative offset.
+ * we clip it in [min(1, objlen), max(min(1, objlen), objlen)] and
+ * do not interpret it as a relative offset.
*/
static inline Py_ssize_t
unicode_error_adjust_end(Py_ssize_t end, Py_ssize_t objlen)