]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo: "occured" =>"occurred" (#134928)
authorRoman <121314722+GameRoMan@users.noreply.github.com>
Sat, 19 Jul 2025 08:48:04 +0000 (09:48 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Jul 2025 08:48:04 +0000 (11:48 +0300)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Modules/_ctypes/stgdict.c
Modules/_interpretersmodule.c

index f208d2956e429ec3160d31da4ba8cbe6973d90a9..ab955a0b824a2f3fae8bdc767b81fffa77b27df0 100644 (file)
@@ -484,7 +484,7 @@ error:;
 
 /*
   Replace array elements at stginfo->ffi_type_pointer.elements.
-  Return -1 if error occured.
+  Return -1 if error occurred.
 */
 int
 _replace_array_elements(ctypes_state *st, PyObject *layout_fields,
index e7feaa7f186aeebeebcb158e545a394fc2fb4834..9426ce72733c28981f217a6ea4af75b135df719f 100644 (file)
@@ -666,7 +666,7 @@ _run_in_interpreter(PyThreadState *tstate, PyInterpreterState *interp,
 
     // Prep and switch interpreters.
     if (_PyXI_Enter(session, interp, shareables, &result) < 0) {
-        // If an error occured at this step, it means that interp
+        // If an error occurred at this step, it means that interp
         // was not prepared and switched.
         _PyXI_FreeSession(session);
         _PyXI_FreeFailure(failure);