Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2275e62

Browse files
committed
Fix spelling errors in code comments
1 parent ce1a9f3 commit 2275e62

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/tools/extensions/suspicious.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,5 @@ def visit_comment(self, node):
270270
# ignore comments -- too much false positives.
271271
# (although doing this could miss some errors;
272272
# there were two sections "commented-out" by mistake
273-
# in the Python docs that would not be catched)
273+
# in the Python docs that would not be caught)
274274
raise nodes.SkipNode

Objects/abstract.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
21092109
"%s returned NULL without setting an error",
21102110
where);
21112111
#ifdef Py_DEBUG
2112-
/* Ensure that the bug is catched in debug mode */
2112+
/* Ensure that the bug is caught in debug mode */
21132113
Py_FatalError("a function returned NULL without setting an error");
21142114
#endif
21152115
return NULL;
@@ -2132,7 +2132,7 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
21322132
where);
21332133
_PyErr_ChainExceptions(exc, val, tb);
21342134
#ifdef Py_DEBUG
2135-
/* Ensure that the bug is catched in debug mode */
2135+
/* Ensure that the bug is caught in debug mode */
21362136
Py_FatalError("a function returned a result with an error set");
21372137
#endif
21382138
return NULL;

0 commit comments

Comments
 (0)