]> granicus.if.org Git - python/commitdiff
#12670: Fix struct code after forward declaration on ctypes doc
authorSandro Tosi <sandro.tosi@gmail.com>
Tue, 2 Aug 2011 14:16:11 +0000 (16:16 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 2 Aug 2011 14:16:11 +0000 (16:16 +0200)
Doc/library/ctypes.rst

index f43e166ce7c1ffc900367c69df6f3e5cfce7e355..d94b04e07ec6eecf53e3b4939d64638fa706c78d 100644 (file)
@@ -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::