From 25fb852e55ebd71be0f1cb5460666fed9612eb98 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Tue, 2 Aug 2011 16:16:11 +0200 Subject: [PATCH] #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 f43e166ce7c..d94b04e07ec 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::