diff options
Diffstat (limited to 'Doc/c-api/iter.rst')
-rw-r--r-- | Doc/c-api/iter.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/iter.rst b/Doc/c-api/iter.rst index fb2a71c..4f70882 100644 --- a/Doc/c-api/iter.rst +++ b/Doc/c-api/iter.rst @@ -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 */ |