Skip to content

Commit c67a9df

Browse files
fix minor typos in exceptions.rst
1 parent 93fdd33 commit c67a9df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/c-api/exceptions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ For convenience, some of these functions will always return a
303303
304304
Set file, line, and offset information for the current exception. If the
305305
current exception is not a :exc:`SyntaxError`, then it sets additional
306-
attributes, which make the exception printing subsystem think the exception
306+
attributes, which make the exception printing subsystem to think that the exception
307307
is a :exc:`SyntaxError`.
308308
309309
.. versionadded:: 3.4
@@ -412,7 +412,7 @@ an error value).
412412
413413
.. c:function:: int PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level, const char *format, ...)
414414
415-
Function similar to :c:func:`PyErr_WarnEx`, but use
415+
Function similar to :c:func:`PyErr_WarnEx`, but uses
416416
:c:func:`PyUnicode_FromFormat` to format the warning message. *format* is
417417
an ASCII-encoded string.
418418

0 commit comments

Comments
 (0)