diff options
| author | Sandro Tosi <sandro.tosi@gmail.com> | 2011-08-02 14:16:11 (GMT) |
|---|---|---|
| committer | Sandro Tosi <sandro.tosi@gmail.com> | 2011-08-02 14:16:11 (GMT) |
| commit | 25fb852e55ebd71be0f1cb5460666fed9612eb98 (patch) | |
| tree | 475726eee013dcbf13b96cb93d6232f14aa7785f | |
| parent | 22a7b488e0fe72c51de6f036f6a03b5d191120eb (diff) | |
| download | cpython-25fb852e55ebd71be0f1cb5460666fed9612eb98.zip cpython-25fb852e55ebd71be0f1cb5460666fed9612eb98.tar.gz cpython-25fb852e55ebd71be0f1cb5460666fed9612eb98.tar.bz2 | |
#12670: Fix struct code after forward declaration on ctypes doc
| -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 f43e166..d94b04e 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:: |
