From 757d25526ab1bfb70b4a3b7ab87502b5b33881f5 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 16 Jan 2009 18:53:44 +0000 Subject: [PATCH] Change an example in the docs to avoid a mistake when the code is copy pasted and changed afterwards. --- Doc/library/ctypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 9ff3de053cb..a98382c0182 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