summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2011-08-02 14:17:14 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2011-08-02 14:17:14 (GMT)
commit692dba244b4f984b4fa15a87e53bd33fad25777e (patch)
treef52b1be4f610539fb07cd14004d39cbb51b135fe
parentef5c71617634ba24b6ed14d65d0466fe84e53057 (diff)
downloadcpython-692dba244b4f984b4fa15a87e53bd33fad25777e.zip
cpython-692dba244b4f984b4fa15a87e53bd33fad25777e.tar.gz
cpython-692dba244b4f984b4fa15a87e53bd33fad25777e.tar.bz2
#12670: Fix struct code after forward declaration on ctypes doc
-rw-r--r--Doc/library/ctypes.rst4
1 files 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::