From 692dba244b4f984b4fa15a87e53bd33fad25777e Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Tue, 2 Aug 2011 16:17:14 +0200 Subject: #12670: Fix struct code after forward declaration on ctypes doc --- Doc/library/ctypes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 33d1f7e..b868a95 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:: -- cgit v0.12