From: Sandro Tosi Date: Tue, 2 Aug 2011 14:17:14 +0000 (+0200) Subject: #12670: Fix struct code after forward declaration on ctypes doc X-Git-Tag: v3.2.2rc1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=692dba244b4f984b4fa15a87e53bd33fad25777e;p=python #12670: Fix struct code after forward declaration on ctypes doc --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 33d1f7e9cd..b868a952f7 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -865,10 +865,10 @@ later:: struct cell; /* forward declaration */ - struct { + struct cell { char *name; struct cell *next; - } cell; + }; The straightforward translation into ctypes code would be this, but it does not work::