]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix grammar in PyErr_ResourceWarning (GH-18879)
authorDaniel Hahler <git@thequod.de>
Thu, 12 Mar 2020 17:09:30 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 17:09:30 +0000 (22:39 +0530)
Doc/c-api/exceptions.rst

index b7175166a6f009f94b42ae7b5f1ee8266c23ac72..e7805ba143c5844984b364c645834afeb3804004 100644 (file)
@@ -358,7 +358,7 @@ an error value).
 .. c:function:: int PyErr_ResourceWarning(PyObject *source, Py_ssize_t stack_level, const char *format, ...)
 
    Function similar to :c:func:`PyErr_WarnFormat`, but *category* is
-   :exc:`ResourceWarning` and pass *source* to :func:`warnings.WarningMessage`.
+   :exc:`ResourceWarning` and it passes *source* to :func:`warnings.WarningMessage`.
 
    .. versionadded:: 3.6