]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] Minor C API documentation improvements. (GH-17699)
authorBenjamin Peterson <benjamin@python.org>
Wed, 25 Dec 2019 04:34:38 +0000 (22:34 -0600)
committerGitHub <noreply@github.com>
Wed, 25 Dec 2019 04:34:38 +0000 (22:34 -0600)
(cherry picked from commit 5c7ed7550ec2da16d7679e538fcd7c1a5631811f)

Co-authored-by: William Ayd <william.ayd@icloud.com>
Doc/c-api/iter.rst

index fb2a71cf1a825a85205c09b2d04abfc57d9b7530..4f708829a89e40dcb35c841454493be9a47a636c 100644 (file)
@@ -36,7 +36,7 @@ something like this::
        /* propagate error */
    }
 
-   while (item = PyIter_Next(iterator)) {
+   while ((item = PyIter_Next(iterator))) {
        /* do something with item */
        ...
        /* release reference when done */