diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-12-25 04:34:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-25 04:34:38 (GMT) |
commit | 362ede2232107fc54d406bb9de7711ff7574e1d4 (patch) | |
tree | b8f401e8da83e1d3b24e2ac8269fc4715b08454d | |
parent | 5f2c1345a79f205c680ed6e0a6ed44199546d79e (diff) | |
download | cpython-362ede2232107fc54d406bb9de7711ff7574e1d4.zip cpython-362ede2232107fc54d406bb9de7711ff7574e1d4.tar.gz cpython-362ede2232107fc54d406bb9de7711ff7574e1d4.tar.bz2 |
[2.7] Minor C API documentation improvements. (GH-17699)
(cherry picked from commit 5c7ed7550ec2da16d7679e538fcd7c1a5631811f)
Co-authored-by: William Ayd <william.ayd@icloud.com>
-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 */ |