diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2011-08-02 14:17:14 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2011-08-02 14:17:14 (GMT) |
commit | 692dba244b4f984b4fa15a87e53bd33fad25777e (patch) | |
tree | f52b1be4f610539fb07cd14004d39cbb51b135fe /Doc/library | |
parent | ef5c71617634ba24b6ed14d65d0466fe84e53057 (diff) | |
download | cpython-692dba244b4f984b4fa15a87e53bd33fad25777e.zip cpython-692dba244b4f984b4fa15a87e53bd33fad25777e.tar.gz cpython-692dba244b4f984b4fa15a87e53bd33fad25777e.tar.bz2 |
#12670: Fix struct code after forward declaration on ctypes doc
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/ctypes.rst | 4 |
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:: |