From 362ede2232107fc54d406bb9de7711ff7574e1d4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 24 Dec 2019 22:34:38 -0600 Subject: [PATCH] [2.7] Minor C API documentation improvements. (GH-17699) (cherry picked from commit 5c7ed7550ec2da16d7679e538fcd7c1a5631811f) Co-authored-by: William Ayd --- Doc/c-api/iter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/iter.rst b/Doc/c-api/iter.rst index fb2a71cf1a8..4f708829a89 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 */