]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in PyIter_Send docs (#140336)
authorPeter Holloway <holloway.p.r@gmail.com>
Mon, 20 Oct 2025 08:53:57 +0000 (09:53 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Oct 2025 08:53:57 +0000 (14:23 +0530)
Doc/c-api/iter.rst

index bf9df62c6f17065d53f85add346a4d6798dd659e..6cfd24c5ae60c80684600c9b66414e1ecdabd473 100644 (file)
@@ -54,6 +54,6 @@ There are two functions specifically for working with iterators.
 
    - ``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*.
    - ``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*.
-   - ``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to ``NULL``.
+   - ``PYGEN_ERROR`` if iterator has raised an exception. *presult* is set to ``NULL``.
 
    .. versionadded:: 3.10