]> 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:17:14 +0000 (16:17 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 2 Aug 2011 14:17:14 +0000 (16:17 +0200)
Doc/library/ctypes.rst

index 33d1f7e9cddc4741763594d857412246b2a94eb9..b868a952f72862156fe647a29f62aecc2bf1bf47 100644 (file)
@@ -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::