From: Sandro Tosi Date: Tue, 2 Aug 2011 14:16:11 +0000 (+0200) Subject: #12670: Fix struct code after forward declaration on ctypes doc X-Git-Tag: v2.7.3rc1~544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25fb852e55ebd71be0f1cb5460666fed9612eb98;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 f43e166ce7..d94b04e07e 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -869,10 +869,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::