summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2009-01-16 18:53:44 (GMT)
committerThomas Heller <theller@ctypes.org>2009-01-16 18:53:44 (GMT)
commit757d25526ab1bfb70b4a3b7ab87502b5b33881f5 (patch)
tree871af32ff0b05b87bc269100f72a7da4ab52572e /Doc/library
parentb3af601b221cf9769d4fc714492cd9105a8c383a (diff)
downloadcpython-757d25526ab1bfb70b4a3b7ab87502b5b33881f5.zip
cpython-757d25526ab1bfb70b4a3b7ab87502b5b33881f5.tar.gz
cpython-757d25526ab1bfb70b4a3b7ab87502b5b33881f5.tar.bz2
Change an example in the docs to avoid a mistake when the code is copy
pasted and changed afterwards.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/ctypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 9ff3de0..a98382c 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -2441,10 +2441,10 @@ other data types containing pointer type fields.
("hreftype", HREFTYPE)]
class TYPEDESC(Structure):
+ _anonymous_ = ("u",)
_fields_ = [("u", _U),
("vt", VARTYPE)]
- _anonymous_ = ("u",)
The ``TYPEDESC`` structure describes a COM data type, the ``vt`` field
specifies which one of the union fields is valid. Since the ``u`` field