Skip to content

Commit d7a3ea3

Browse files
authored
fix a typo: "occured" =>"occurred"
1 parent c600310 commit d7a3ea3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/_ctypes/stgdict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ error:;
484484

485485
/*
486486
Replace array elements at stginfo->ffi_type_pointer.elements.
487-
Return -1 if error occured.
487+
Return -1 if error occurred.
488488
*/
489489
int
490490
_replace_array_elements(ctypes_state *st, PyObject *layout_fields,

Modules/_interpretersmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ _exec_in_interpreter(PyThreadState *tstate, PyInterpreterState *interp,
452452
// Prep and switch interpreters.
453453
if (_PyXI_Enter(session, interp, shareables) < 0) {
454454
if (_PyErr_Occurred(tstate)) {
455-
// If an error occured at this step, it means that interp
455+
// If an error occurred at this step, it means that interp
456456
// was not prepared and switched.
457457
_PyXI_FreeSession(session);
458458
return -1;

0 commit comments

Comments
 (0)