Fix some typos (GH-14435)
(cherry picked from commit f7d72e48fb235684e17668a1e5107e6b0dab7b80)
Co-authored-by: Min ho Kim <minho42@gmail.com>
diff --git a/Modules/_abc.c b/Modules/_abc.c
index 1fbf3a8..de938dd 100644
--- a/Modules/_abc.c
+++ b/Modules/_abc.c
@@ -547,7 +547,7 @@
}
-// Return -1 when exception occured.
+// Return -1 when exception occurred.
// Return 1 when result is set.
// Return 0 otherwise.
static int subclasscheck_check_registry(_abc_data *impl, PyObject *subclass,
@@ -659,7 +659,7 @@
/* 5. Check if it's a subclass of a registered class (recursive). */
if (subclasscheck_check_registry(impl, subclass, &result)) {
- // Exception occured or result is set.
+ // Exception occurred or result is set.
goto end;
}